Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.
JSON

%JSON_ArrayAppendObject function


Function

Append object to JSON array

Declaration


Blok kódu
languageesl
themeConfluence
%JSON_ArrayAppendObject(
    INT in handle, 
    INT in object
 )


Parameters


handleHandle to parent JSON array.
arrayHandle to JSON object


Return value
None


Description

Funcion append object to JSON array

Exception is thrown if handle to parent array or handle to object is invalid.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_CreateArray()

 INT _tmp
 _tmp := %JSON_CreateObject()
 
 %JSON_ArrayAppendObject(_arr, _tmp)

 %JSON_FreeArrayHandle(_arr)
 %JSON_FreeObjectHandle(_tmp)