Replacement for MapperBuilder.serializationInclusion(JsonInclude.Include.NON_NULL) #5294
-
|
I see that var jsonMapper = JsonMapper.builder().serializationInclusion(NON_NULL).build()The javadoc advises to use I see that internally, Jackson does |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
|
I would suggest looking at test cases that use that method. https://github.com/search?q=repo%3AFasterXML%2Fjackson-databind%20defaultPropertyInclusion&type=code |
Beta Was this translation helpful? Give feedback.
Pull-requests:
Constants in JsonInclude.Value: FasterXML/jackson-annotations#314
A few tests adapted to use them: #5296