Skip to content

Consider a true pretty-printed JSON format type #1691

Description

@scotttrinh

We currently have three JSON output formats:

  • json: which gives you proper JSON output
  • json-lines: which gives https://jsonlines.org/ formatted lines, great for streaming
  • json-pretty: which gives you json-lines except with colors and some CLI friendly formatting if you're in a terminal

What we don't have is an output format that will output an easy-to-read, formatted JSON file similar to what you'd get from JSON.stringify(result, null, INDENT_SIZE); or running the json output through something like Prettier, that is actually valid JSON. Mostly, I think this is what people would expect from the term json-pretty.

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