Read JSON and write it back in normalized pretty form.
gem install dorian-json-read-writeAlso included in the aggregate gem:
gem install dorianjson-read-write [json ...] [file ...]Run json-read-write -h for generated option details and json-read-write -v for the installed version.
- With files, rewrites each file. With stdin or inline JSON, prints normalized JSON to stdout.
cat package.json | json-read-write