Returns an array on the specified index from a JSON array.
INT %JSON_ArrayGetArray( INT in handle, INT in index )
The function returns an array on the specified index from the JSON array.
If the item type is not an array, the handle on the JSON array is invalid, or the index is invalid, an exception is thrown.
INT _arr _arr := %JSON_ArrayFromString('[[1,2,3],[4,5,6]]') INT _tmp _tmp := %JSON_ArrayGetArray(_arr, 1) %JSON_FreeArrayHandle(_tmp) %JSON_FreeArrayHandle(_arr)
Related pages:
JSON format manipulation functionsFunction arguments - types
0 komentárov