@JsonInclude: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= =Preventing Inclusion of Null Fields= <syntaxhighlight lang='java'> ... @JsonInclude(JsonInclude.Include.NON_NULL) private Integer someField; ... </syntaxhighligh...")
(No difference)

Revision as of 19:39, 30 December 2018

Internal

Preventing Inclusion of Null Fields

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

Alos see:

Jackson ObjectMapper Configuration