Check out example codes for "jackson ignore value if null". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com