SAP ABAP JSON ASJSON STRUC ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

JSON, asJSON for Structures
This example demonstrates asJSON for a structure.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The identity transformation ID (for which a JSON writer is specified as the XML target) is called to create and display the asJSONformat of a structure.
As a comparison, the JSON-XML representation of the JSON data and the asXML representation of the ABAP data is also shown.