changes.mady.by.user D2000 Dev Team
Uložené nov 25, 2019
Get object at index from JSON array.
INT %JSON_ArrayGetObject( INT in handle, INT in index )
Funcion get object at index from JSON array.
Exception is thrown if object at index is not object, handle to JSON array is invalid or index is out of range.
INT _arr _arr := %JSON_ArrayFromString('[{"Name":"John"}]') INT _obj _obj := %JSON_ArrayGetObject(_arr, 1) %JSON_FreeObjectHandle(_obj) %JSON_FreeArrayHandle(_arr)
JSON format manipulation functionsFunction arguments - types