Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmhodges/jsonpp
A fast command line JSON pretty printer.
https://github.com/jmhodges/jsonpp
Last synced: about 2 months ago
JSON representation
A fast command line JSON pretty printer.
- Host: GitHub
- URL: https://github.com/jmhodges/jsonpp
- Owner: jmhodges
- License: mit
- Created: 2011-08-22T03:24:31.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T16:30:30.000Z (almost 2 years ago)
- Last Synced: 2024-01-07T01:43:59.538Z (5 months ago)
- Language: Go
- Homepage: http://jmhodges.github.com/jsonpp/
- Size: 54.7 KB
- Stars: 328
- Watchers: 15
- Forks: 26
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- cli-apps - jsonpp - A fast command line JSON pretty printer. (<a name="data-management-json"></a>Data management - JSON/YAML/etc.)
- awesome-cli-apps - jsonpp - A fast command line JSON pretty printer. (<a name="data-management-json"></a>Data management - JSON/YAML/etc.)
README
jsonpp
======**A command line JSON pretty printer.**
Pretty print web service responses like so:
curl -s -L http://t.co/tYTq5Pu | jsonpp
and make beautiful the files running around on your disk:
jsonpp testdata/multiple/multiple.json
You can also format previously pretty-printed code with "-s":
jsonpp -s testdata/one/singular.json
Jsonpp exists because a friend was building against an API with large JSON APIs
and was tired of the noticable wait times that other languages' tooling
had. Then, jsonpp turned out to be pretty nice for parsing the JSON log files we
had lying around and I made it a thing.Install
-------Installable with `go get github.com/jmhodges/jsonpp`, `brew install jsonpp`,
or copying the binary to your `$PATH`. See the [live
documentation](http://jmhodges.github.com/jsonpp/) for details.Options
-------The string used for indentation defaults to 2 spaces, but can be overridden
by the environment variable `JSONPP_INDENT`.Adding the "-s" parameter will allow you to format already formatted JSON code by assuming the entire input stream is one JSON object.