BlogGitHub
Reference/ORK/JSON_NODE/ORK/IF_JSON_NODE_NUMBER
Interface/ORK/IF_JSON_NODE_NUMBER
JSON Number
Package
/ORK/JSON_NODE
Interfaces
/ORK/IF_JSON_NODE
Members
7
Description

Represents a JSON number node. Provides typed accessors for common ABAP numeric types and supports cloning, formatting/serialization, equality, and freezing via the base node interface.

JSON does not distinguish between integer and floating-point types. Conversion methods may round, truncate, or raise errors depending on the stored value and target ABAP type.

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

7 items
Methods
get
MethodPublic
Get value as decfloat34

Parameters

NameDescriptionresultNumeric value as decfloat34

Signature

METHODS get RETURNING VALUE(result) TYPE decfloat34.
get_int4
MethodPublic
Get value as int4

Parameters

NameDescriptionresultNumeric value converted to type i

Signature

METHODS get_int4 RETURNING VALUE(result) TYPE i.
get_int8
MethodPublic
Get value as int8

Parameters

NameDescriptionresultNumeric value converted to type int8

Signature

METHODS get_int8 RETURNING VALUE(result) TYPE int8.
get_float
MethodPublic
Get value as float

Parameters

NameDescriptionresultNumeric value converted to type f

Signature

METHODS get_float RETURNING VALUE(result) TYPE f.
get_number_string
MethodPublic
Get canonical number string

Returns the numeric value as a string representation suitable for JSON serialization.

Parameters

NameDescriptionresultJSON number string representation

Signature

METHODS get_number_string RETURNING VALUE(result) TYPE string.
export
MethodPublic
Export numeric value

Exports the numeric value into a caller-provided variable of type NUMERIC.

Parameters

NameDescriptionvalueExported numeric value

Signature

METHODS export EXPORTING !value TYPE numeric.
set
MethodPublic
Set numeric value

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

Parameters

NameDescriptionvalueNumeric value to set

Signature

METHODS set IMPORTING !value TYPE numeric.
Repository11 packages · 113 objects
124 items