Automation: test variable type

Hello,

I’m parsing a complex json with jsenv. Under one key, two type may occur depending on wether only one or multiple entries exist.
So typically either
{ "key": "value" }
or
{ "key": ["value1", "value2", ... ]}

I can’t find a ‘isArray’ function or the like. Length function seems not to be usable because it returns either the size of the array or the number of char for a string.

Any ideas?

Thank you!

Hm. There isn’t anything like that at the moment.
What about traversing the object inside the JSENV and doing the assertion there? You could add an extra parameter to denote if array or not (or make them all into arrays to simplify processing)