I think this is what is being done. What version are you using? -+ Tatu +-
On Tue, Oct 25, 2016 at 1:58 AM, Alex Oberon <alx.obe...@gmail.com> wrote: > I mean Optional from Java > https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html > jackson could on serialization if field has type Optional assign > Optional.empty() instead of assign null > > On Tuesday, October 25, 2016 at 12:55:48 AM UTC+3, Tatu Saloranta wrote: >> >> What do you mean by optional fields? Optional values are usually defined >> by assigning them in POJO. >> Jackson itself does not support value defaulting, as that belongs (IMO) >> outside data-binding. >> >> -+ Tatu +- >> >> >> On Mon, Oct 24, 2016 at 2:58 AM, Alex Oberon <alx.o...@gmail.com> wrote: >>> >>> Hi. >>> >>> How to make default values for Optional fields to be Optional.empty() ? >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "jackson-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to jackson-user...@googlegroups.com. >>> To post to this group, send email to jackso...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >> >> > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jackson-user+unsubscr...@googlegroups.com. > To post to this group, send email to jackson-user@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user+unsubscr...@googlegroups.com. To post to this group, send email to jackson-user@googlegroups.com. For more options, visit https://groups.google.com/d/optout.