BlogGitHub
Reference/ORK/JSON_NODE/ORK/IF_JSON_NODE_STRING
Interface/ORK/IF_JSON_NODE_STRING
JSON String
Package
/ORK/JSON_NODE
Interfaces
/ORK/IF_JSON_NODE
Members
4
Description

Represents a JSON string node. Provides access to the string value and supports cloning, formatting/serialization, equality, and freezing via the base node interface.

Additionally provides Base64 helpers to read/write the content as bytes.

Immutability contract: Any modifying operation must raise an exception if the node is frozen.

4 items
Methods
get
MethodPublic
Get string value

Parameters

NameDescriptionresultString value

Signature

METHODS get RETURNING VALUE(result) TYPE string.
set
MethodPublic
Set string value

Sets the string value of this JSON string node. Must raise an exception if the node is frozen.

Parameters

NameDescriptionvalueString value to set

Signature

METHODS set IMPORTING !value TYPE string.
get_b64
MethodPublic
Get value as Base64-decoded bytes

Interprets the string value as Base64 and returns the decoded bytes.

Parameters

NameDescriptionresultDecoded byte sequence

Signature

METHODS get_b64 RETURNING VALUE(result) TYPE xstring.
set_b64
MethodPublic
Set value from bytes (Base64-encoded)

Encodes the provided bytes as Base64 and stores the result as string value. Must raise an exception if the node is frozen.

Parameters

NameDescriptionvalueByte sequence to encode and store

Signature

METHODS set_b64 IMPORTING !value TYPE xstring.
Repository11 packages · 113 objects
124 items