| Crates.io | jsonfmt |
| lib.rs | jsonfmt |
| version | 0.4.1 |
| created_at | 2019-11-18 19:59:26.763578+00 |
| updated_at | 2019-11-24 16:08:45.988258+00 |
| description | A command line program for pretty-printing or minimizing json files. |
| homepage | |
| repository | https://github.com/anderejd/jsonfmt |
| max_upload_size | |
| id | 182282 |
| size | 21,449 |
A command line program for pretty-printing or minimizing json files.
Prettify and overwrite an existing file:
jsonfmt some_file.json
Read json from stdin, prettify it and print to stdout:
cat in_file.json | jsonfmt
Read json from stdin, minimize it and write it to a new file:
cat in_file.json | jsonfmt -m -o out_file.json
-m --minimize.-o for writing to a new file.