Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

jackson ignore value if null

public class Object {
  
    @JsonInclude(NON_NULL)
    @JsonProperty("property")
    private String property;
  
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #jackson #ignore #null
ADD COMMENT
Topic
Name
8+8 =