SAP ABAP JSON ASJSON XSD ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_JSON - asJSON for Additional XML Schema Data Types
This example demonstrates asJSON for additional XML Schema Data Types.

ABAP_SOURCE_CODE
DEMO CL_DEMO_ASJSON_OTHER_XSD_TYPES

ABAP_DESCRIPTION
A call of the identity transformation ID , for which a JSON writer is specified as an XML target, creates the asJSON representation of a structure. The structure components are typed with regular ABAP types and typed with special domains for XML schema data types. The time stamp type utclong is formatted by default using yyyy-mm-ddThh:mm:ss.fffffffZ. Time stamps in packed numbers, on the other hand, require special domains.
For comparison, the JSON-XML representation of the JSON data and the asXML representation of the ABAP data is also shown.