@JsonInclude

From NovaOrdis Knowledge Base
Revision as of 19:39, 30 December 2018 by Ovidiu (talk | contribs) (Created page with "=Internal= =Preventing Inclusion of Null Fields= <syntaxhighlight lang='java'> ... @JsonInclude(JsonInclude.Include.NON_NULL) private Integer someField; ... </syntaxhighligh...")
(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