Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

jackson ignore null fields

@JsonInclude(Include.NON_NULL)
public String getStudentName() {
    return studentName;
}
(or)
@JsonInclude(Include.NON_NULL)
public void setStudentName(String studentName) {
    this.studentName = studentName;
}
Source by tedblob.com #
 
PREVIOUS NEXT
Tagged: #jackson #ignore #null #fields
ADD COMMENT
Topic
Name
3+9 =