Jackson mengabaikan nilai jika null
public class Object {
@JsonInclude(NON_NULL)
@JsonProperty("property")
private String property;
}
DullDev
public class Object {
@JsonInclude(NON_NULL)
@JsonProperty("property")
private String property;
}