How can Jackson be configured to ignore a field value during serialization if that field\'s value is null.
For example:
public class SomeClass {
You can set application.properties:
application.properties
spring.jackson.default-property-inclusion=non_null
or application.yaml:
application.yaml
spring: jackson: default-property-inclusion: non_null
http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html