Is there a way to input lengthy JSON data into ABAP as a string literal without the need for excessive line breaks or formatting? Perhaps enclosing the string in a specific template, or utilizing a method similar to JSON.stringify(..) found in other languages. I am relatively new to ABAP and unsure about the best approach...
For example, consider this data:
{"todos":[{"id":1,"todo":"Do something nice for someone I care about" ...}]}
It would be convenient if ABAP supported template string literals like those in JavaScript, allowing for easy inclusion of both ' and " without needing to escape characters...
By the way... My goal is to deserialize the JSON into an internal table, then insert it into my Dictionary Table using a loop which seems to be functioning correctly,
DATA: lv_json TYPE string VALUE '[{"id":10,"todo": ...}]'
However, I still need to determine the best format for parsing the JSON... (is there a program available for parsing JSON from a file?)..