@JsonInclude

From NovaOrdis Knowledge Base
Revision as of 19:40, 30 December 2018 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Preventing Inclusion of Null Fields

...
@JsonInclude(JsonInclude.Include.NON_NULL)
private Integer someField;
...

Alos see:

Jackson ObjectMapper Configuration