Skip to content

WSLC: A --format option that produces "correct" JSON #41666

Description

Over the past several versions of WSLC, changes have been made to the CLI to make its output better match the output from the Docker CLI. It's understandable for the sake of compatibility...but Docker's CLI output is confusing and difficult to parse programmatically.

I propose an option to pass to --format that outputs much more structured JSON--also, as true JSON, not JSON lines (aka NDJSON aka JSONL).

I don't have any great suggestions for naming. The first thing that comes to mind is --format realjson but that's not great either 😄

Having a new format option does not break compatibility with existing consumers, but new consumers can take advantage of the better output format.

It's not mandatory by any means, since the primary consumer is other applications, but having the JSON be formatted (i.e. with whitespace) would be nice too.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions