json.length not working?
-
No such thing as the length property for JSON objects, like there is for arrays?
-
@aaronventure nope, but you can iterate through the keys with
for(key in jsonObject)if that's of any help.inline function getJSONLength(obj) { local i = 0; for(k in obj) i++; return i; } -
@Christoph-Hart yeah of course, I thought I hallucinated it for a second, probably because so many array methods work on objects, too. thanks.
-
A aaronventure marked this topic as a question on
-
A aaronventure has marked this topic as solved on