Skip to Content
0
Feb 02, 2020 at 09:49 AM

Read a specific JSON object/node from JSON file

295 Views

HI,

I have a rawstring stored in my ztable, am able to read the rawstring and convert it to JSON format.

However from this file, I have a specific requirement to read a one specific object/node from Json file.. For example: The JSON file has R1 (root node) C1 (child node) C2 , C3 and C4.

Then based on input I should be able to fetch one node data like C3 ( this may have data in array fashion too). This functionality is similar to XPATH/Jsonpath operations. ( $data[*].nodename) .

Can you please guide on to how to do this in ABAP?

Thanks,

Raj