SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Data Interfaces and Communication Interfaces → ABAP and JSON → Transformations for JSON → asJSON - Canonical JSON Representation → asJSON - Mapping of ABAP Data Types → asJSON - Mapping of Reference Variables and Objects →asJSON - Anonymous Data Objects
An anonymous data object, that is a data object created using CREATE DATA or the instance operator NEW, is displayed as an object component of %heap in the form:
The name key is the key used to reference the anonymous data object. The value of key is itself an object whose object components represent the type and the value of the anonymous data object.
The values of the anonymous data object is specified as content of the component %val in its canonical representation. If the anonymous data object itself is a non-initial reference variable, it references another component of %heap.
The remaining components specify the data type of the anonymous data object.
Example
See asJSON for Anonymous Data Objects.