Hi, I have observed that the response data from any API does not contain
the properties with null values. Upon having a check, I found that the
class "JacksonConfig" has
"objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);"
which excludes the null properties from the response data. Not sending the
null properties has benefits. But I feel that this property should be
configurable and not provide the feature of not sending the null
properties. It can be something like the default behavior is to not send
the null properties in the JSON response and it is configurable where the
developer can set some property to toggle the behavior. Please provide your
view on this and let me know if there is some configuration available and I
am missing something. Thank you.

Reply via email to