SAP ABAP Class /UI2/CL_JSON_SERIALIZER (/UI2/CL_JSON_SERIALIZER)
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
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  /UI2/IF_SERIALIZE Serializing Data 20121204
Properties
Class /UI2/CL_JSON_SERIALIZER  
Short Description    
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 20121204   SAP 
Last change 20130531   SAP 
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)
Interfaces
# Interface Abstract Final Description Created on
1 /UI2/IF_SERIALIZE Serializing Data 20121204
Friends
Class /UI2/CL_JSON_SERIALIZER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GV_CH0000 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
2 GV_CH0001 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
3 GV_CH0002 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
4 GV_CH0003 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
5 GV_CH0004 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
6 GV_CH0005 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
7 GV_CH0006 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
8 GV_CH0007 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
9 GV_CH0008 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
10 GV_CH0009 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
11 GV_CH000A Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
12 GV_CH000B Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
13 GV_CH000C Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
14 GV_CH000D Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
15 GV_CH000E Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
16 GV_CH000F Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
17 GV_CH0010 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
18 GV_CH0011 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
19 GV_CH0012 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
20 GV_CH0013 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
21 GV_CH0014 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
22 GV_CH0015 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
23 GV_CH0016 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
24 GV_CH0017 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
25 GV_CH0018 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
26 GV_CH0019 Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
27 GV_CH001A Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
28 GV_CH001B Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
29 GV_CH001C Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
30 GV_CH001D Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
31 GV_CH001E Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
32 GV_CH001F Static Attribute Protected Type reference (TYPE) SYCHAR01 20121204
33 GV_CH_INITIALIZED Static Attribute Protected Type reference (TYPE) ABAP_BOOL 20121204
34 MV_CALLBACK Instance attribute Protected Type reference (TYPE) STRING 20121204
35 MV_CASE_TYPE Instance attribute Protected Type reference (TYPE) I 20121204
Methods
# Method Level Visibility Method type Description Created on
1 ADD_FIELDS Instance method Protected Method 20121204
2 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20121204
3 CONSTRUCTOR Instance method Public Constructor 20121205
4 ESCAPE_JSON Static method Public Method 20121204
5 GET_VALUES Instance method Protected Method 20121204
6 GET_VALUE_BOOLEAN Instance method Private Method 20130122
7 GET_VALUE_NUMERIC Instance method Private Method 20130123
8 GET_VALUE_STRING Instance method Public Method 20130124
9 SERIALIZE_ARRAY_TO_OBJ Instance method Protected Method 20121204
10 SERIALIZE_STRUC Instance method Protected Method 20121204
11 SERIALIZE_TABLE Instance method Protected Method 20121204
12 SERIALIZE_TO_STRING Instance method Protected Method 20121204
Events
Class /UI2/CL_JSON_SERIALIZER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_FIELD Protected See coding 20121204 TT_FIELD TYPE STANDARD TABLE OF ty_field WITH KEY name
2 TY_FIELD Protected See coding 20121204 BEGIN OF ty_field, name TYPE string, descr TYPE REF TO cl_abap_datadescr, numeric TYPE abap_bool, boolean TYPE abap_bool, language TYPE abap_bool, END OF ty_field
Method Signatures

Method ADD_FIELDS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FIELDS Call by reference Type reference (TYPE) TT_FIELD 20121204
2 Importing IO_STRUCTDESCR Call by reference Object reference (TYPE REF TO) CL_ABAP_STRUCTDESCR Runtime Type Services 20121204

Method ADD_FIELDS on class /UI2/CL_JSON_SERIALIZER has no exception.

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class /UI2/CL_JSON_SERIALIZER has no parameter.
Method CLASS_CONSTRUCTOR on class /UI2/CL_JSON_SERIALIZER has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_CASE_TYPE Call by reference Type reference (TYPE) I 20121205

Method CONSTRUCTOR on class /UI2/CL_JSON_SERIALIZER has no exception.

Method ESCAPE_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UNESCAPED Call by reference Type reference (TYPE) STRING Unescaped JSON string 20121204
2 Returning RV_ESCAPED Value transfer Type reference (TYPE) STRING Escaped JSON string 20121204

Method ESCAPE_JSON on class /UI2/CL_JSON_SERIALIZER has no exception.

Method GET_VALUES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DATA Call by reference Object reference (TYPE REF TO) DATA 20121204
2 Importing IT_FIELDS Call by reference Type reference (TYPE) TT_FIELD 20121204
3 Importing IV_TOP_LEVEL Call by reference Type reference (TYPE) ABAP_BOOL 20121204
4 Returning RT_VALUES Value transfer Type reference (TYPE) STRING_TABLE Table of Strings 20121204

Method GET_VALUES on class /UI2/CL_JSON_SERIALIZER has no exception.

Method GET_VALUE_BOOLEAN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NAME Call by reference Type reference (TYPE) STRING 30 Characters 20130123
2 Importing IV_VALUE Call by reference Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20130123
3 Returning RV_RESULT Value transfer Type reference (TYPE) STRING 20130123

Method GET_VALUE_BOOLEAN on class /UI2/CL_JSON_SERIALIZER has no exception.

Method GET_VALUE_NUMERIC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NAME Call by reference Type reference (TYPE) STRING 30 Characters 20130123
2 Importing IV_NUMERIC_VALUE Call by reference Type reference (TYPE) STRING Boolean Variable (X=True, -=False, Space=Unknown) 20130123
3 Returning RV_RESULT Value transfer Type reference (TYPE) STRING 20130123

Method GET_VALUE_NUMERIC on class /UI2/CL_JSON_SERIALIZER has no exception.

Method GET_VALUE_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NAME Call by reference Type reference (TYPE) STRING 30 Characters 20130124
2 Importing IV_VALUE Call by reference Type reference (TYPE) STRING Boolean Variable (X=True, -=False, Space=Unknown) 20130124
3 Returning RV_RESULT Value transfer Type reference (TYPE) STRING 20130124

Method GET_VALUE_STRING on class /UI2/CL_JSON_SERIALIZER has no exception.

Method SERIALIZE_ARRAY_TO_OBJ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ARRAY Call by reference Type reference (TYPE) STRING 20121204
2 Returning RV_OBJECT Value transfer Type reference (TYPE) STRING 20121204

Method SERIALIZE_ARRAY_TO_OBJ on class /UI2/CL_JSON_SERIALIZER has no exception.

Method SERIALIZE_STRUC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_STRUCTDESCR Call by reference Object reference (TYPE REF TO) CL_ABAP_STRUCTDESCR Runtime Type Services 20121204
2 Importing IR_DATA Call by reference Object reference (TYPE REF TO) DATA 20121204
3 Importing IV_TOP_LEVEL Call by reference Type reference (TYPE) ABAP_BOOL 20121204
4 Importing IV_UPPER_CASE Call by reference Type reference (TYPE) ABAP_BOOL 20121204
5 Returning RV_JSON Value transfer Type reference (TYPE) STRING 20121204

Method SERIALIZE_STRUC on class /UI2/CL_JSON_SERIALIZER has no exception.

Method SERIALIZE_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_TABLEDESCR Call by reference Object reference (TYPE REF TO) CL_ABAP_TABLEDESCR Runtime Type Services 20121204
2 Importing IR_DATA Call by reference Object reference (TYPE REF TO) DATA 20121204
3 Importing IV_TOP_LEVEL Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20121204
4 Returning RV_JSON Value transfer Type reference (TYPE) STRING 20121204

Method SERIALIZE_TABLE on class /UI2/CL_JSON_SERIALIZER has no exception.

Method SERIALIZE_TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DATA Call by reference Object reference (TYPE REF TO) DATA 20121204
2 Returning RV_STRING Value transfer Type reference (TYPE) STRING 20121204

Method SERIALIZE_TO_STRING on class /UI2/CL_JSON_SERIALIZER has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 100