SAP Knowledge Base Article - Preview

2829938 - An empty EntitySet is represented as an empty JSON array instead of 'null'

Symptom

After upgrade, the OData JSON serializer handles empty result arrays in a different way. Previously it would be 'null', now it is an empty JSON array.

For example, previously it was:

"Products" : null

Now it is:

"Products" : {
      "results" : [

      ]
    }


Read more...

Environment

SAP Gateway Framework

Product

SAP Gateway all versions

Keywords

SAP Gateway, SAP OData gateway, OData, Entity Set, empty result, json format, array, JSON, JSON array, 'null', empty JSON array, empty response, Inline Representation, Verbose JSON object , KBA , OPU-FND-CCL , Consumer Connectivity Layer , OPU-GW-COR , Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.