there is some old bug that is probably irrelevant that keeps people from returning Arrays as top level objects in JSON APIs (on the web at least): http://stackoverflow.com/questions/3503102/what-are-top-level-json-arrays-and-why-are-they-a-security-risk b'c of this I usually support newline delimited json and an array of objects, e.g.: ``` {"foo": "bar"} {"foo": "bar"} ``` or ``` { "data": [ {"foo": "bar"}, {"foo": "bar"} ] } ```
there is some old bug that is probably irrelevant that keeps people from returning Arrays as top level objects in JSON APIs (on the web at least): http://stackoverflow.com/questions/3503102/what-are-top-level-json-arrays-and-why-are-they-a-security-risk
b'c of this I usually support newline delimited json and an array of objects, e.g.:
or