SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Release-Specific Changes → Changes in Release 7.40 →JSON Interface in Release 7.40
From Release 7.40, ABAP supports the handling of JSON data and the transformation of ABAP data to JSON and back. For more information, see ABAP and JSON.
3. JSON and CALL TRANSFORMATION
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
sXML Library, which enables JSON data to be edited using JSON-XML.
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.
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. For more information, see Transformations for JSON.
JSON and escape
The escape symbol function escape supports the new format E_JSON_STRING for replacing special characters in JSON.