%JSON_ArrayIsObject function


Function

Check if there is object at given index in JSON array.

Declaration
BOOL %JSON_ArrayIsObject(
    INT in handle, 
    INT in index
 )
Parameters
handleHandle to parent JSON array.
indexIndex
Return value

@TRUE if at given index is object, else @FALSE.

Description

Function check if there is object at given index in JSON array.

Exception is thrown if handle to JSON array is invalid or index is out of range.

Example
 INT _arr
 _arr := %JSON_ArrayFromString("[[1,2,3],{}]")
 
 BOOL _is_array
 _is_array := %JSON_ArrayIsArray(_arr, 1)

 %JSON_FreeArrayHandle(_arr)
Napíšte komentár