Skip to content

thoughts on output format #3

@max-mapper

Description

@max-mapper

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"}
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions