I normally use objectMapper.setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL) because I never want the null values of my classes serialized. Except now I have a specif
With Jackson 1.9 is used @JsonSerialize(include= JsonSerialize.Inclusion.ALWAYS)
@JsonSerialize(include= JsonSerialize.Inclusion.ALWAYS)
@JsonSerialize(include=Include.ALWAYS) did not compile.
@JsonSerialize(include=Include.ALWAYS)