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

Fix JSON output when using -j or --json option #52

Open
htrgouvea opened this issue Jan 28, 2025 · 0 comments
Open

Fix JSON output when using -j or --json option #52

htrgouvea opened this issue Jan 28, 2025 · 0 comments

Comments

@htrgouvea
Copy link
Owner

htrgouvea commented Jan 28, 2025

Context:

The Nozaki tool includes a -j or --json option that formats the output as a JSON object. However, the current implementation does not produce valid JSON when there is more than one item in the response. This issue needs to be addressed to ensure compliance with the JSON standard.

What is needed to do:

Update the implementation of the -j/--json option to produce valid JSON when multiple items are returned. For example, wrap multiple results in an array to ensure the output is valid JSON.
Add automated tests to verify the JSON output for single and multiple items.
Update the documentation to clarify that the output will always be valid JSON.

Definition of done:

The output of the -j or --json option is valid JSON, regardless of the number of items in the response.
Automated tests confirm the correctness of the JSON output.
Documentation is updated with examples of the JSON output.

@htrgouvea htrgouvea changed the title Fix JSON Output When Using -j or --json Option Fix JSON output when using -j or --json option Jan 28, 2025
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