BlogGitHub
Reference/ORK/SINGLETON/ORK/IF_SI_JSON_NEW
Interface/ORK/IF_SI_JSON_NEW
JSON node factory (Singleton)
Package
/ORK/SINGLETON
Members
6
Description

Provides methods to create JSON nodes of various types (object, array, string, number, boolean, null).

6 items
Methods
object
MethodPublic

Creates a JSON object node.

Parameters

NameDescriptionmembersOptional table of member key-value pairsresultReference to the created JSON object node

Signature

METHODS object IMPORTING !members TYPE /ork/if_json_node=>ty-members OPTIONAL
                 RETURNING VALUE(result) TYPE REF TO /ork/if_json_node_object.
array
MethodPublic

Creates a JSON array node.

Parameters

NameDescriptionnodesOptional table of child JSON nodesresultReference to the created JSON array node

Signature

METHODS array IMPORTING !nodes TYPE /ork/if_json_node=>ty-nodes OPTIONAL
                RETURNING VALUE(result) TYPE REF TO /ork/if_json_node_array.
string
MethodPublic

Creates a JSON string node.

Parameters

NameDescriptionvalueString value to assignresultReference to the created JSON string node

Signature

METHODS string IMPORTING !value TYPE string
                 RETURNING VALUE(result) TYPE REF TO /ork/if_json_node_string.
bool
MethodPublic

Creates a JSON boolean node.

Parameters

NameDescriptionvalueBoolean value (abap_true / abap_false)resultReference to the created JSON boolean node

Signature

METHODS bool IMPORTING !value TYPE abap_bool
               RETURNING VALUE(result) TYPE REF TO /ork/if_json_node_bool.
number
MethodPublic

Creates a JSON number node.

Parameters

NameDescriptionvalueNumeric valueresultReference to the created JSON number node

Signature

METHODS number IMPORTING !value TYPE numeric
                 RETURNING VALUE(result) TYPE REF TO /ork/if_json_node_number.
null
MethodPublic

Creates a JSON null node.

Parameters

NameDescriptionresultReference to the created JSON null node

Signature

METHODS null RETURNING VALUE(result) TYPE REF TO /ork/if_json_node_null.
Repository11 packages · 113 objects
124 items