Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert a JSON string to pre-defined ABAP structure

raffinkira
Participant
0 Likes
1,448

Hi all,

I want to convert a JSON string to SE11 ABAP structure.

I am using cl_trex_json_deserializer, but it doesn't support JSON of which field name with double quotes.

I have also tried /ui2/cl_json, but it only supports to convert to dynamical structure.

Anyone could help?

3 REPLIES 3
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
931

That is not true. Class /ui2/cl_json can deserialize JSON to pre-defined structure. Check its wiki page for many examples and documentation.

-- Tomas --
Read only

raffinkira
Participant
0 Likes
931

Method DESERIALIZE_INT in /UI2/CL_JSON worked, thank you for the help.

Read only

Sandra_Rossi
Active Contributor
0 Likes
931