Uncategorized

annotation @JsonInclude of Jackson library which helps in eliminating default, null, empty, etc values. For this post, we will focus on default values. Suppose we have an Employee POJO as below:- It may not be mandatory to pass values to all fields in a payload. For example, a “gender” field may be optional and you …

Continue reading @JsonInclude Annotation – Ignore Default Values In Payload