You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Seccafien (JIRA)" <ji...@apache.org> on 2019/05/30 14:03:00 UTC
[jira] [Created] (OLINGO-1361) Provide option to omit null
properties from a JSON Response
Michael Seccafien created OLINGO-1361:
-----------------------------------------
Summary: Provide option to omit null properties from a JSON Response
Key: OLINGO-1361
URL: https://issues.apache.org/jira/browse/OLINGO-1361
Project: Olingo
Issue Type: Wish
Components: odata2-core
Reporter: Michael Seccafien
There does not seem to be an option currently to ignore the null property values in the odata json response.
For example, we would like to have:
{ "name": "abc", "description": null}
returned as:
{ "name": "abc"}
ASP.Net currently has this feature: [https://stackoverflow.com/questions/14486667/suppress-properties-with-null-value-on-asp-net-web-api]
I believe this would require enhancements to [https://github.com/apache/olingo-odata2/blob/ae1653b2fbd1ac579ea7dfaec46af6dd150aa743/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/ep/producer/JsonEntryEntityProducer.java]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)