Skip to content

Output to console in JSON format (e.g. double quotes instead of single quotes, "None" in quotes). #22

@llewelld

Description

@llewelld

User story: "As a user of the CLI, it would be convenient if outputs could be generated in JSON format, so that I can import them and manipulate them easily using other software."

Currently the output from some CLI commands is nearly but not quite in JSON format. For example, single quotes are used to surround key names and some of the outputs are invalid JSON values (e.g. None as opposed to "None").

This makes it trickier to import the data into other tools which expect JSON format. It's possible to convert the data using some regex search and replace, but this is time-consuming and feels like an unnecessary step. It can also prevent outputs from being directly piped into other tools.

It'd be great if the outputs could generate valid JSON outputs, potentially activated using a flag.

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