BlogGitHub
Reference/ORK/SINGLETON/ORK/IF_SI_JSON_PARSE
Interface/ORK/IF_SI_JSON_PARSE
JSON parser (Singleton)
Package
/ORK/SINGLETON
Members
2
Description

Provides methods to parse JSON content from strings or byte sequences into JSON node trees.

2 items
Methods
string
MethodPublic

Parses a JSON string into a JSON node tree.

Parameters

NameDescriptionjsonJSON content as a stringparserjson parser methodresultReference to the root JSON node of the parsed content

Signature

METHODS string IMPORTING !json TYPE string
                           parser TYPE REF TO /ork/if_json_parser DEFAULT /ork/cl_json_parser=>default
                 RETURNING VALUE(result) TYPE REF TO /ork/if_json_node.
bytes
MethodPublic

Parses a JSON byte sequence into a JSON node tree.

Parameters

NameDescriptionjsonJSON content as an xstringencodingCharacter encoding of the byte sequence (default UTF-8)parserjson parser methodresultReference to the root JSON node of the parsed content

Signature

METHODS bytes IMPORTING !json TYPE xstring
                          !encoding TYPE REF TO /ork/if_encoding DEFAULT /ork/cl_encoding=>utf8
                          parser TYPE REF TO /ork/if_json_parser DEFAULT /ork/cl_json_parser=>default
                RETURNING VALUE(result) TYPE REF TO /ork/if_json_node.
Repository11 packages · 113 objects
124 items