On Sat, Oct 13, 2018 at 1:22 PM Volkan Yazıcı <[email protected]> wrote>
> While using `JsonGenerator`, how can I exclude empty/null/blank object fields? > > (I have asked the very same question on SO as well, but could not get any > answer yet. Hence the cross-post.) By not writing them. That is, generator writes exactly what you ask it to. It is possible to implement a `JsonGeneratorDelegate` that could block calls, and in fact `FilteringGeneratorDelegate` does this to allow structural exclusion/inclusion. -+ Tatu +- -- 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 [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
