When using jsonlint.com, even invalid JSON is pretty printed. It seemed like a good option to have in the cli version as well. This is simply inserting the char-by-char formatter from https://github.com/umbrae/jsonlintdotcom and adding an option to cli.js.
2.7 KiB
2.7 KiB