Get Example source ABAP code based on a different SAP table
ABAP_JSON - Transformations The transformations for XML> that can be called from ABAP, namely XSL transformations> and simple transformations>, can also be used for JSON>.
To call a transformation for JSON data as a source, the following XML sources can be specified in the statement CALL TRANSFORMATION>>:
A string or internal table with JSON data> in character-like or byte-like representation.
A JSON Reader>. A JSON reader returns data in the JSON XML> format. The JSON data specified as a string or in an internal table is also handled like XML representing JSON data JSON-XML> format.
To call a transformation for JSON data as a target, a JSON writer> can be specified as an XML target in the statement CALL TRANSFORMATION>>: A JSON writer expects data in JSON-XML> format. Any XSLT programs and ST programs can be called that can handle JSON-XML:
If the source is JSON data, the transformation must process JSON-XML as its input.
If the target is JSON data, the transformation must create JSON-XML. Self-written transformations must be programmed accordingly. The identity transformation> ID> is handled appropriately internally.