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.obe...@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+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.