03-02-2020 11:42 AM
Hi ,
I have a requirement where I need to convert a given json array in deep structure form to dynamic internal table .
I have used
data : it_item1 TYPE REF TO data.
CALL METHOD /ui2/cl_json=>deserialize
EXPORTING
json = str "array holding the values required
CHANGING
data = it_item1.
I tried converting it_item1 to internal table but came across the following error:"IT_ITEM1" is not an internal table.
Thank you
03-02-2020 11:48 AM
Hi,
Please have a look at following wiki, usage of /ui2/cl_json is explained here in detail.
https://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
Best regards,
Geert-Jan Klaps
03-02-2020 11:48 AM
Hi,
Please have a look at following wiki, usage of /ui2/cl_json is explained here in detail.
https://wiki.scn.sap.com/wiki/display/Snippets/One+more+ABAP+to+JSON+Serializer+and+Deserializer
Best regards,
Geert-Jan Klaps