SAP Knowledge Base Article - Preview

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

Symptom

After upgrade, you found that 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 is:

"Products" : null

Now it is:

"Products" : {
      "results" : [

      ]
    }


Read more...

Environment

SAP Gateway Framework

Product

SAP Gateway all versions

Keywords

Entity Set, empty result, json format , 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 ONE Support launchpad (Login required).

Search for additional results

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