JSON Array Size

Hey everyone. Does anyone have an example of how to determine the number of elements in a JSON Array returned from a function in Wix code? The JSON is returning ok, and I can determine the contents of the array, but can’t work out the size. I have tried length and size but to no avail. Thank you.