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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions