Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
llewelld opened this issue Nov 22, 2024 · 0 comments

Comments

@llewelld
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant