Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%JSON_ArrayAppendObject function
Function
Append object to Appends a new object at the end of the JSON array.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
%JSON_ArrayAppendObject( INT in handle, INT in object ) |
Parameters
handle | Handle to parent JSON array. |
array | Handle to JSON object. |
Return value
None.
Description
Funcion append object to The function appends a new object at the end of the JSON array.
Exception is thrown if handle to parent array or handle to object is invalidIf it is an invalid handle on a JSON array or an invalid handle on an appended JSON object, an exception is thrown.
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
INT _arr _arr := %JSON_CreateArray() INT _tmp _tmp := %JSON_CreateObject() %JSON_ArrayAppendObject(_arr, _tmp) %JSON_FreeArrayHandle(_arr) %JSON_FreeObjectHandle(_tmp) |