changes.mady.by.user D2000 Dev Team
Uložené nov 25, 2019
changes.mady.by.user D2000 Doc Team
Uložené jan 03, 2022
Get Returns the number (gets length) of elements in a JSON array.
INT %JSON_ArrayGetLength( INT in handle )
Number The number of items in a JSON array.
Function get length of The function returns the number of elements in the specified JSON array.
Exception is thrown if handle to If the handle on the JSON array is invalid, an exception is thrown.
INT _arr _arr := %JSON_ArrayFromString('[[1,2,3],[4,5,6]]') INT _length _length := %JSON_ArrayGetLength(_arr) %JSON_FreeArrayHandle(_arr)
JSON format manipulation functionsFunction arguments - types