Skip to content

Instantly share code, notes, and snippets.

@mydoghasworms
Created April 2, 2012 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mydoghasworms/2282244 to your computer and use it in GitHub Desktop.
Save mydoghasworms/2282244 to your computer and use it in GitHub Desktop.
ABAP code to test JSON to ABAP subroutine
* Code to test https://gist.github.com/2282070
* Should result in COMP1 structure filled and an entry in COMP2 of LS_DEEP
data: ls_deep type veri_deep1.
json =
'{"COMP1": {"F1": "0123", F5: "ab cd\nef", F7: 20090802, "F8": 23123, "F11": 123.23}, '
& 'COMP2: [{"F1": "0123", F5: "gh ij\nkl", F7: 20090802, "F8": 1000, "F11": 543.23}] }'.
perform json_to_data using json ls_deep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment