Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

thoughts on output format #3

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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