2023 Aug 11 11:26 AM
hi all,
I have the following JSON format and would like to know how to serialize and deserialize it in ABAP.
{sample: true
ABC: [ [ 2, " ABC " ], [3, "CDS],[4,"TAB"]..]
}
Here my doubt is
What kind of ABC should there be here, I wonder?
I can create a table of tables, however the values in the table are only strings and integers without any further components.
2023 Aug 11 2:49 PM
It's up to you to choose the adequate type. A STRING type can contain both "2", "3", "4", "ABC", "CDS", etc.
You may also decide to have a table with structured lines made of 2 components, one being the number, one being the string.