Add fixer for json: python's json.tool (#4847)

Resolves #4314.

Add a fixer that's built into python for json formatting. Include a
couple arguments in docs to make these features more discoverable.

Uses stdin-based fixing so you don't need to save the file to fix.
This commit is contained in:
David Briscoe
2025-02-23 18:30:43 -08:00
committed by GitHub
parent 699c0dbe80
commit d38a3f7739
6 changed files with 62 additions and 0 deletions

View File

@@ -338,6 +338,7 @@ formatting.
* [eslint](http://eslint.org/) :warning:
* [fixjson](https://github.com/rhysd/fixjson)
* [jq](https://stedolan.github.io/jq/) :warning:
* [json.tool](https://docs.python.org/3/library/json.html#module-json.tool) :warning:
* [jsonlint](https://github.com/zaach/jsonlint)
* [prettier](https://github.com/prettier/prettier)
* [spectral](https://github.com/stoplightio/spectral)