[
https://issues.apache.org/jira/browse/OFBIZ-12585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Brohl updated OFBIZ-12585:
----------------------------------
Description:
The _JacksonConfig.java_ has code snippet
_objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);_ that
restricts the response data for sending the properties with null values. Making
it flexible by either providing a configuration or using
_JsonInclude.Include.USE_DEFAULTS_ that allows source class to handle null
values.
Note [~mbrohl] : mailing list discussion see
https://lists.apache.org/thread/19r1yhfklqn1753khzb0th47t8bkxdwy
was:The _JacksonConfig.java_ has code snippet
_objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);_ that
restricts the response data for sending the properties with null values. Making
it flexible by either providing a configuration or using
_JsonInclude.Include.USE_DEFAULTS_ that allows source class to handle null
values.
> Rest API does not send the null properties in response
> ------------------------------------------------------
>
> Key: OFBIZ-12585
> URL: https://issues.apache.org/jira/browse/OFBIZ-12585
> Project: OFBiz
> Issue Type: Sub-task
> Components: rest-api
> Reporter: Rishi
> Assignee: Michael Brohl
> Priority: Major
>
> The _JacksonConfig.java_ has code snippet
> _objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);_ that
> restricts the response data for sending the properties with null values.
> Making it flexible by either providing a configuration or using
> _JsonInclude.Include.USE_DEFAULTS_ that allows source class to handle null
> values.
> Note [~mbrohl] : mailing list discussion see
> https://lists.apache.org/thread/19r1yhfklqn1753khzb0th47t8bkxdwy
--
This message was sent by Atlassian Jira
(v8.20.1#820001)