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] New tool JSON abc / sort #306

Closed
ngosang opened this issue Mar 29, 2023 · 3 comments · Fixed by #313
Closed

[FEAT] New tool JSON abc / sort #306

ngosang opened this issue Mar 29, 2023 · 3 comments · Fixed by #313
Assignees
Labels
enhancement New feature or request

Comments

@ngosang
Copy link

ngosang commented Mar 29, 2023

Is your feature request related to a problem? Please describe.
New tool JSON abc / sort. It will receive a JSON as input and it will return a beautiful JSON with the keys ordered alphabetically.
It's useful to compare JSON files and when you are working with big files.
You could include this feature as an option in "JSON prettify and format" tool or as a new tool.
image

Describe the solution you'd like
Example tools

Describe alternatives you've considered
.

Additional context
.

@CorentinTh
Copy link
Owner

Done ✅
Added a few config in the json prettifier

https://it-tools.tech/json-prettify

screely-1680125626413

@ngosang
Copy link
Author

ngosang commented Mar 31, 2023

Thank you!

@ngosang
Copy link
Author

ngosang commented Apr 5, 2023

@CorentinTh

  1. I think this toogle should be false by default. Sorting is only useful for comparing.
  2. If I set indent = 0, I get the same result as in the JSON minify tool. Maybe you should merge both tools and add a toogle to minimize?

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

Successfully merging a pull request may close this issue.

2 participants