https://github.com/cpl/jpp
JSON Pretty Print - Golang
https://github.com/cpl/jpp
golang golang-tools json
Last synced: 5 months ago
JSON representation
JSON Pretty Print - Golang
- Host: GitHub
- URL: https://github.com/cpl/jpp
- Owner: cpl
- License: unlicense
- Created: 2019-11-07T08:53:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T09:27:50.000Z (over 6 years ago)
- Last Synced: 2024-06-20T15:04:15.599Z (almost 2 years ago)
- Topics: golang, golang-tools, json
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Pretty Print - Golang
A quick and simple Golang tool to help you prettify your JSON.
```bash
go get cpl.li/go/jpp
```
Usage is straightforward:
```bash
# Get the help message with all flag description
jpp -help
# Change indent style and/or prefix
jpp -indent " " -prefix " "
# Use a file as input
jpp -file /var/log/docker/output.json
# Use it as a pipe
cmd0 | cmd1 | jpp
```
Feel free to make whatever changes you want to the code.