JSON_ArrayAppendValue
%JSON_ArrayAppendValue function
Funkcia
Appends a new value at the end of the JSON array.
Deklarácia
%JSON_ArrayAppendValue(
INT in handle
UNIVAL in value
)Parametre
handle | Handle to the JSON array |
value | Value to be appended |
Návratová hodnota
None.
Popis
The function appends a new value at the end of the specified JSON array. Supported types are INT, REAL, BOOL and TEXT. If you need to save a TIME value, you must first convert it to TEXT and then paste it.
An exception is thrown if the value type is unsupported or the handle on the JSON array is invalid.
Príklad
INT _arr
_arr := %JSON_CreateArray()
%JSON_ArrayAppendValue(_arr, "IPESOFT")
%JSON_ArrayAppendValue(_arr, 365)
%JSON_ArrayAppendValue(_arr, 1.234)
%JSON_ArrayAppendValue(_arr, @TRUE)
%JSON_ArrayAppendValue(_arr, U.uservariable)
%JSON_FreeArrayHandle(_arr)Súvisiace stránky:
JSON Format Manipulation Functions
Function arguments - types