changes.mady.by.user D2000 Dev Team
Uložené nov 25, 2019
changes.mady.by.user D2000 Doc Team
Uložené feb 26, 2022
Get array in field from Returns the field in the specified item from a JSON object.
INT %JSON_ObjectGetArray( INT in handle, TEXT in field )
Funcion get array in field from The function returns a field in the specified item from a JSON object.
Exception is thrown if ifthe object at index is not an array, handle to JSON object is invalid or the field does not exists.
INT _obj _obj := %JSON_ObjectFromString('{"Array":[1,2,3]}') INT _arr _arr := %JSON_ObjectGetArray(_obj, "Array") %JSON_FreeObjectHandle(_obj) %JSON_FreeArrayHandle(_arr)
JSON format manipulation functionsFunction arguments - types