Hello,
Null values are removed in the REST API. I tried different methods but none of them added null values. For example:
@Configuration
public class JacksonConfig {
@Bean
public ObjectMapper objectMapper() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure(SerializationFeature.WRITE_NULL_MAP_VALUES, true);
objectMapper.setSerializationInclusion(JsonInclude.Include.ALWAYS);
return objectMapper;
}
}
What to do to add a null value?
Thanks