Xbasic
Extension::JsonArraySize Method
Syntax
.ArraySize as n (json as C)
Arguments
- jsonCharacter
Json array string.
Returns
- resultNumeric
Number of elements in array
Description
Count the number of rows in a json array (returns -1 if the supplied JSON is not an array).
Example
? extension::json::ArraySize("[10,20,30,40,50,60,70,80,90]") = 9