Determines if there is a JSON array at a given position in the JSON array.
BOOL %JSON_ArrayIsArray( INT in handle, INT in index )
@TRUE if there is a JSON array at that position, @FALSE otherwise.
The function determines whether there is an array at the given position in the JSON array.
If the index is invalid or the handle on the JSON array is invalid, an exception is thrown.
INT _arr _arr := %JSON_ArrayFromString("[[1,2,3],{}]") BOOL _is_array _is_array := %JSON_ArrayIsArray(_arr, 1) %JSON_FreeArrayHandle(_arr)
Related pages:
JSON format manipulation functionsFunction arguments - types
0 komentárov