https://github.com/oshankkumar/prettyjson
tool for formatting JSON inputs
https://github.com/oshankkumar/prettyjson
Last synced: 2 months ago
JSON representation
tool for formatting JSON inputs
- Host: GitHub
- URL: https://github.com/oshankkumar/prettyjson
- Owner: oshankkumar
- Created: 2019-02-11T15:11:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T14:38:14.000Z (about 7 years ago)
- Last Synced: 2024-06-20T17:46:56.124Z (almost 2 years ago)
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prettyjson
prettyjson is a tool for processing JSON inputs, applying the
given filter to its JSON text inputs and producing the
filter's results as JSON on standard output.
## usage
```
# format json input from a file source
prettyjson -f inputFile.json
# format json input and use tabs for indentation
prettyjson -f inputFile.json -i
# format json input in bold format
prettyjson -f inputFile.json -F bold
# format json input in bold and italic format
prettyjson -f inputFile.json -F bold,italic
# format based on the JSON passed into stdin.
cat inputFile.json | prettyjson
curl -XGET http://ip:port/url/path | prettyjson`
```
## install
```
sudo wget https://github.com/oshankkumar/prettyjson/releases/download/v0.1.0/prettyjson -O /usr/local/bin/prettyjson
sudo chmod +x /usr/local/bin/prettyjson
```