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 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
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 | ![]() |
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 | ![]() |
Static method | Public | Method | Serializes object | 20140304 |
2 | ![]() |
Static method | Public | Method | Recursive conversion | 20130910 |
3 | ![]() |
Static method | Public | Method | Dumps elementary type to string | 20130910 |
4 | ![]() |
Static method | Public | Method | Dumps elementary type to string (no type description needed) | 20130912 |
5 | ![]() |
Static method | Public | Method | Escapes JSON String | 20130910 |
6 | ![]() |
Static method | Public | Method | PrettyPrint names | 20130910 |
7 | ![]() |
Static method | Public | Method | Deserialize JSON to ABAP | 20140304 |
8 | ![]() |
Static method | Public | Method | Deserialize JSON to ABAP | 20140304 |
9 | ![]() |
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 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data to serialize | 20140304 | ||
2 | ![]() |
JSON | Call by reference | Type reference (TYPE) | STRING | JSON string | 20140304 | ||
3 | ![]() |
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 | ![]() |
COMPRESS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Skip empty elements | 20130910 | |
2 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data reference | 20130910 | ||
3 | ![]() |
PRETTY_NAME | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Pretty Print property names | 20130910 | |
4 | ![]() |
R_JSON | Value transfer | Type reference (TYPE) | STRING | JSON string | 20130910 | ||
5 | ![]() |
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 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data reference | 20130910 | ||
2 | ![]() |
R_JSON | Value transfer | Type reference (TYPE) | STRING | JSON string | 20130911 | ||
3 | ![]() |
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 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data reference | 20130912 | ||
2 | ![]() |
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 | ![]() |
IN | Call by reference | Type reference (TYPE) | ANY | Text to escape | 20130910 | ||
2 | ![]() |
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 | ![]() |
IN | Call by reference | Type reference (TYPE) | CSEQUENCE | Text to pretty print | 20130910 | ||
2 | ![]() |
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 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data to serialize | 20140304 | ||
2 | ![]() |
JSON | Call by reference | Type reference (TYPE) | STRING | JSON string | 20140304 | ||
3 | ![]() |
LENGTH | Call by reference | Type reference (TYPE) | I | Length of JSON string | 20140304 | ||
4 | ![]() |
OFFSET | Call by reference | Type reference (TYPE) | I | 0 | Ofsset in JSON string | 20140304 | |
5 | ![]() |
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 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data to serialize | 20140304 | ||
2 | ![]() |
JSON | Call by reference | Type reference (TYPE) | STRING | JSON string | 20140304 | ||
3 | ![]() |
LENGTH | Call by reference | Type reference (TYPE) | I | Length of JSON string | 20140304 | ||
4 | ![]() |
OFFSET | Call by reference | Type reference (TYPE) | I | 0 | OFsset in JSON string | 20140304 | |
5 | ![]() |
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 | ![]() |
COMPRESS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Skip empty elements | 20130910 | |
2 | ![]() |
DATA | Call by reference | Type reference (TYPE) | DATA | Data to serialize | 20130909 | ||
3 | ![]() |
NAME | Call by reference | Type reference (TYPE) | STRING | Object name | 20130910 | ||
4 | ![]() |
PRETTY_NAME | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Pretty Print property names | 20130910 | |
5 | ![]() |
R_JSON | Value transfer | Type reference (TYPE) | STRING | JSON string | 20130909 | ||
6 | ![]() |
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 |