Determines if there is an object at a given position in the JSON array.
BOOL %JSON_ArrayIsObject( INT in handle, INT in index )
@TRUE if there is a JSON object at that position, @FALSE otherwise.
The function determines whether there is an object at a 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