On Mon, Sep 24, 2018 at 12:06 PM gaurav <[email protected]> wrote:
>
> is it possible to do conditional serialization in jackson?
>
> i.e. if @JsonView is applied on few fields, then serialize them else 
> serialize whole bean.

I am not sure I follow -- that sounds like how `@JsonView` works?
Although the behavior of properties that do not have `@JsonView`
varies based on setting

    MapperFeature.DEFAULT_VIEW_INCLUSION

which defaults to `true` (include those without view annotation), but
can be set to `false` (exclude ones
without view annotation).

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

Reply via email to