Porovnávané verzie

Kľúč

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

%JSON_ObjectGetObject function


Function

Get Gets an object in the field from the JSON object.

Declaration


Blok kódu
languageesl
themeConfluence
INT %JSON_ObjectGetObject(
    INT in handle, 
    TEXT in field
 )


Parameters


handleHandle to parent JSON object.
fieldField name


Return value
Handle to the JSON object, must be released by by %JSON_FreeObjectHandle.


Description

Funcion get Funciton gets an array in the field from the JSON object.

Exception is thrown if object at index is not array, handle to JSON object is invalid or the field does not exists.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString(ModuleInfo)
 
 INT _tmp
 _tmp := %JSON_ObjectGetObject(_obj, "client_info")

 %JSON_FreeObjectHandle(_obj)
 %JSON_FreeObjectHandle(_tmp)