ABAP Keyword Documentation → ABAP - Release-Specific Changes → Changes in Release 7.40 and Its SPs → Changes in Release 7.40, SP02
JSON Binding in Release 7.40, SP02
From Release 7.40 SP02, ABAP supports the handling of JSON data and the transformation of ABAP data to JSON and back. For more information, see ABAP and JSON.
This enhancement has also been ported to releases 7.02 and 7.31.
3. JSON and CALL TRANSFORMATION
Other versions:
7.31 | 7.40 | 7.54
Modification 1
JSON-XML
JSON-XML is a special XML format that enables JSON data to be described using an XML representation. A new format, IF_SXML=>CO_XT_JSON, has been added to the sXML Library, which enables JSON data to be edited using JSON-XML.
Modification 2
asJSON
The canonical JSON representation asJSON defines a mapping between ABAP types and JSON. This is used in serializations and deserializations using the identity transformation ID.
Modification 3
JSON and CALL TRANSFORMATION
JSON data can be specified in various forms as an XML source in the statement CALL TRANSFORMATION
and a
JSON writer can be specified s target. The
identity transformation ID supports JSON by using
asJSON. More information is available in
Transformations for JSON.
Modification 3
JSON and escape
The escape function escape
supports the new format E_JSON_STRING for replacing special characters in JSON.