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