Porovnávané verzie

Kľúč

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

%JSON_ObjectIsArray function


Function

Check Checks if there is an array in a given field in the JSON object.

Declaration


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


Parameters


handleHandle to parent JSON object.
fieldField name


Return value

@TRUE if in given field is array, else @FALSE.

Description

Function check checks if there is an array in a given field in the JSON object.

Exception is thrown if handle to JSON object is invalid or field does not exists.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString(ModuleInfo)
 
 BOOL _is_array
 _is_array := %JSON_ObjectIsArray(_obj, "client_info")

 %JSON_FreeObjectHandle(_obj)