Porovnávané verzie

Kľúč

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

%JSON_ArrayIsArray function


Function

Check Determines if there is a JSON array at a given index position in the JSON array.

Declaration


Blok kódu
languageesl
themeConfluence
BOOL %JSON_ArrayIsArray(
    INT in handle, 
    INT in index
 )


Parameters


handleHandle to the parent JSON array.
indexIndex.


Return value

@TRUE if at given index there is a JSON array at that position, else @FALSE@FALSE otherwise.

Description

Function check if The function determines whether there is an array at the given index position in the JSON array.

Exception is thrown if handle to If the index is invalid or the handle on the JSON array is invalid or index is out of range, an exception is thrown.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_ArrayFromString("[[1,2,3],{}]")
 
 BOOL _is_array
 _is_array := %JSON_ArrayIsArray(_arr, 1)

 %JSON_FreeArrayHandle(_arr)