excluding fields in json vs having null code example
Example: jackson ignore value if null
public class Object {
@JsonInclude(NON_NULL)
@JsonProperty("property")
private String property;
}
public class Object {
@JsonInclude(NON_NULL)
@JsonProperty("property")
private String property;
}