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.x you can use @JsonSerialize(include = Inclusion.ALWAYS) and with Jackson 2.x you can use @JsonInclude(Include.ALWAYS). These annotations will override the default config from your ObjectMapper.