The JSON function does not seem to work at all with arrays:
Set(arrtest, JSON({arr: [1,2]}))
This should produce perfectly legal JSON however it insists on wanting to create key/value pairs, so instead it produces:
{"arr": [{"Value":1},{"Value":2}]}
Which is entirely incorrect. How can I get it to produce proper json for array data?