serialize field when not null values 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;
}