SAP ABAP JSON TOKEN WRITER ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_JSON - Rendering
The example demonstrates the rendering of JSON data.

ABAP_SOURCE_CODE
DEMO CL_DEMO_JSON_TOKEN_WRITER

ABAP_DESCRIPTION
An XML string writer from XML Library is created as a JSON writer with the type IF_SXML=>CO_XT_JSON. Token-based rendering methods are used to fill the writer with XML elements that create a valid JSON-XML representation. The result is a string with valid JSON data.