ABAP Keyword Documentation → ABAP − Reference → Data Interfaces and Communication Interfaces → ABAP and JSON → Transformations for JSON → asJSON - Canonical JSON Representation
asJSON - Mapping Additional XML Schema Data Types
In asXML, apart from the XML schema data types needed to map elementary ABAP types, additional XML schema data types are supported by special domains called XSD....
asJSON, which is based on asXML, also supports these domains (with the exception of XSDQNAME). In serializations and deserializations from or to ABAP data objects typed with these domains, the same applies as to asXML. Here, values from the domain XSDBOOLEAN are represented as real Boolean JSON values in asJSON.
Other versions:
7.31 | 7.40 | 7.54
Note
By specifying format in the attribute option of the ST command tt:value, formats of this type can also be applied to ABAP data objects that are not typed with a domain of this type. In JSON, furthermore, the option attribute also makes it possible to convert ABAP data fields and time stamps to UNIX time stamps (or ticks) in the JSON format for OData.