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

[Feat] Add JSON output to r.describe #4903

Open
NishantBansal2003 opened this issue Jan 1, 2025 · 0 comments
Open

[Feat] Add JSON output to r.describe #4903

NishantBansal2003 opened this issue Jan 1, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@NishantBansal2003
Copy link
Contributor

Add JSON output for easy parsing of r.describe output.

Describe the solution you'd like
Add an option for format, such as format=plain for the current output format and format=json for the JSON output.

A possible JSON layout could be:

[
  {
    "values": "0.996534-8.677654"
  },
  {
    "values": "8.677654-16.358774"
  },
  {
    "values": "16.358774-24.040000"
  }
]

Describe alternatives you've considered
Alternatively(helpful for numerical operations or parsing), the JSON layout could look like this:

[
  {
    "min": "0.996534",
    "max": "8.677654"
  },
  {
    "min": "8.677654",
    "max": "16.358774"
  },
  {
    "min": "16.358774",
    "max": "24.040000"
  }
]
@NishantBansal2003 NishantBansal2003 added the enhancement New feature or request label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant