SAP ABAP ASJSON ABAP TYPES STRUC

Get Example source ABAP code based on a different SAP table
  


ARTICLE

asJSON - Mapping of Structures
In asJSON, an ABAP structure is represented as a JSON object whose object components represent the structure components. The content of each object component corresponds to the canonical representation of the component value. The name of each object component is the name of the corresponding structure component. In serializations, the object components are represented in the order of the components in the structure. In deserializations of the aJSON representation of a structure, the order of the object components is not important and redundant object components are ignored. Components of the structure for which there are no object components remain unchanged.

Note
A structure that does not have an associated JSON object component in deserializations retains its previous value. A structure to which an empty object is assigned also remains unchanged, since this has the same effect on the structure components as a missing object component. To initialize the structure in these cases, the transformation option clear can be used with the value 'all'.


Example
See asJSON for Structures .