Application Development 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: 

Convert a JSON string to pre-defined ABAP structure

raffinkira
Participant
0 Kudos

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

Tomas_Buryanek
Active Contributor

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 --

raffinkira
Participant
0 Kudos

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

Sandra_Rossi
Active Contributor
0 Kudos