jackson ignore value if null

Java
public class Object {
  
    @JsonInclude(NON_NULL)
    @JsonProperty("property")
    private String property;
  
}
Source

Also in Java: