Showing results for 
Search instead for 
Did you mean: 

SAP Odata v2 handles deep JSON structures

0 Kudos

Hello Experts,

I have a requirement where i am getting a nested json as input to my Odata.


{"O_1" : {"O_2 ": {"O_3" : ["A_1": {1},{2} ] } } }

I am not sure how this will be desearilized into SAP ODATA so that data can be used in backend.

Object O_1,O_2 dose not have any property. I am not sure how this deep structure will be deserilised in SAP.

Creating an Entity named O_1 without any property is not possible.

navigation to entity to entity set without properties is not feasible.

Can someone help me with how i can read this JSON input for the HTTP request in ODATA?

If i can get some expert advice on this?

Product and Topic Expert
Product and Topic Expert

What release do you use?

SAP NetWeaver 740, 750, ... or is it SAP S/4HANA Foundation 1909, 2020, ...

Or are we talking about ABAP environment in SAP BTP?

Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor


there are some blogs showing you how to handle deep entities on SAP thru OData.

For example you can check this or this or this one too.

It's quite simple: you have to create the single entities and then create the associations between them.