Snippets tagged “jsoninclude”
1 snippet uses this tag.
- How to tell Jackson to ignore a field during serialization if its value is null?Java
There are a few ways to tell Jackson to ignore a field during serialization if its value is null. One way is to use the @JsonInclude annotation with the Include.NON_NULL value on the field or class level.