AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.40 and its SPs → News for ABAP Release 7.40, SP02 →JSON Binding in ABAP Release 7.40, SP02
From ABAP 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.
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 processed 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 as target. The
identity transformation ID supports JSON by using
asJSON. More information is available in
Transformations for JSON.
JSON and escape
The escape function escape supports the new format E_JSON_STRING for replacing special characters in JSON.