@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 edit summary
 
Line 1: Line 1:
=Internal=
=Internal=
* [[Jackson#Annotations|Jackson]]
* [[Jackson_ObjectMapper#Writing_or_Not_Null_Fields|Jackson ObjectMapper Configuration]]


=Preventing Inclusion of Null Fields=
=Preventing Inclusion of Null Fields=

Latest revision as of 19:40, 30 December 2018

Internal

Preventing Inclusion of Null Fields

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

Alos see:

Jackson ObjectMapper Configuration