spring ignore not set fiels 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;
}