SAP ABAP Class /UI2/CL_JSON (JSON converter)
Hierarchy
SAP_UI (Software Component) User Interface Technology
   CA-UI2-INT-BE (Application Component) Backend Enablement
     /UI2/BASIS_SERVICES_START_UP (Package) UI BE: Start-Up of Frontend Shell
Properties
Class /UI2/CL_JSON  
Short Description JSON converter    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package /UI2/BASIS_SERVICES_START_UP   UI BE: Start-Up of Frontend Shell 
Created 20130909   SAP 
Last change 20141120    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 CX_SY_CONVERSION_ERROR Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class /UI2/CL_JSON has no interface implemented.
Friends
Class /UI2/CL_JSON has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_BOOLEAN_TYPES Constant Protected Type reference (TYPE) STRING `TYPE-POOL=ABAPTYPE=ABAP_BOOL#TYPE=BOOLEAN#TYPE=BOOLE_D` Known ABAP Boolean types 20140811
Methods
# Method Level Visibility Method type Description Created on
1 DESERIALIZE Static method Public Method Serializes object 20140304
2 DUMP Static method Public Method Recursive conversion 20130910
3 DUMP_TYPE Static method Public Method Dumps elementary type to string 20130910
4 DUMP_TYPE_EX Static method Public Method Dumps elementary type to string (no type description needed) 20130912
5 ESCAPE Static method Public Method Escapes JSON String 20130910
6 PRETTY_NAME Static method Public Method PrettyPrint names 20130910
7 RESTORE Static method Public Method Deserialize JSON to ABAP 20140304
8 RESTORE_TYPE Static method Public Method Deserialize JSON to ABAP 20140304
9 SERIALIZE Static method Public Method Serializes object 20130909
Events
Class /UI2/CL_JSON has no event.
Types
Class /UI2/CL_JSON has no local type.
Method Signatures

Method DESERIALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing DATA Call by reference Type reference (TYPE) DATA Data to serialize 20140304
2 Importing JSON Call by reference Type reference (TYPE) STRING JSON string 20140304
3 Importing PRETTY_NAME Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Pretty Print property names 20140304

Method DESERIALIZE on class /UI2/CL_JSON has no exception.

Method DUMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing COMPRESS Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Skip empty elements 20130910
2 Importing DATA Call by reference Type reference (TYPE) DATA Data reference 20130910
3 Importing PRETTY_NAME Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Pretty Print property names 20130910
4 Returning R_JSON Value transfer Type reference (TYPE) STRING JSON string 20130910
5 Importing TYPE_DESCR Call by reference Object reference (TYPE REF TO) CL_ABAP_TYPEDESCR Data descriptor 20130910

Method DUMP on class /UI2/CL_JSON has no exception.

Method DUMP_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA Call by reference Type reference (TYPE) DATA Data reference 20130910
2 Returning R_JSON Value transfer Type reference (TYPE) STRING JSON string 20130911
3 Importing TYPE_DESCR Call by reference Object reference (TYPE REF TO) CL_ABAP_ELEMDESCR Data descriptor 20130910

Method DUMP_TYPE on class /UI2/CL_JSON has no exception.

Method DUMP_TYPE_EX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA Call by reference Type reference (TYPE) DATA Data reference 20130912
2 Returning R_JSON Value transfer Type reference (TYPE) STRING JSON string 20130912

Method DUMP_TYPE_EX on class /UI2/CL_JSON has no exception.

Method ESCAPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) ANY Text to escape 20130910
2 Returning OUT Value transfer Type reference (TYPE) STRING Processed text 20130910

Method ESCAPE on class /UI2/CL_JSON has no exception.

Method PRETTY_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IN Call by reference Type reference (TYPE) CSEQUENCE Text to pretty print 20130910
2 Returning OUT Value transfer Type reference (TYPE) STRING Processed 20130910

Method PRETTY_NAME on class /UI2/CL_JSON has no exception.

Method RESTORE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing DATA Call by reference Type reference (TYPE) DATA Data to serialize 20140304
2 Importing JSON Call by reference Type reference (TYPE) STRING JSON string 20140304
3 Importing LENGTH Call by reference Type reference (TYPE) I Length of JSON string 20140304
4 Changing OFFSET Call by reference Type reference (TYPE) I 0 Ofsset in JSON string 20140304
5 Importing PRETTY_NAME Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Pretty Print property names 20140304

Method RESTORE on class /UI2/CL_JSON has no exception.

Method RESTORE_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing DATA Call by reference Type reference (TYPE) DATA Data to serialize 20140304
2 Importing JSON Call by reference Type reference (TYPE) STRING JSON string 20140304
3 Importing LENGTH Call by reference Type reference (TYPE) I Length of JSON string 20140304
4 Changing OFFSET Call by reference Type reference (TYPE) I 0 OFsset in JSON string 20140304
5 Importing PRETTY_NAME Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Pretty Print property names 20140304

Method RESTORE_TYPE on class /UI2/CL_JSON has no exception.

Method SERIALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing COMPRESS Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Skip empty elements 20130910
2 Importing DATA Call by reference Type reference (TYPE) DATA Data to serialize 20130909
3 Importing NAME Call by reference Type reference (TYPE) STRING Object name 20130910
4 Importing PRETTY_NAME Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Pretty Print property names 20130910
5 Returning R_JSON Value transfer Type reference (TYPE) STRING JSON string 20130909
6 Importing TYPE_DESCR Call by reference Object reference (TYPE REF TO) CL_ABAP_TYPEDESCR Data descriptor 20130912

Method SERIALIZE on class /UI2/CL_JSON has no exception.
History
Last changed by/on SAP  20141120 
SAP Release Created in 100