fix issues with json arrays
make sure attempts to iterate a plain json object works
Merge branch 'json-arrays'