Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thoughts on output format #3

Open
max-mapper opened this issue Jan 5, 2014 · 0 comments
Open

thoughts on output format #3

max-mapper opened this issue Jan 5, 2014 · 0 comments

Comments

@max-mapper
Copy link

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"}
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant