Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

jsonpretty 🎨

Pretty-print and validate JSON from stdin or files.

GoLicense: MITGo Report Card

Pipe in messy JSON, get clean output.

Install

go install github.com/clarabennettdev/jsonpretty@latest

Usage

curl -s https://api.example.com/data | jsonpretty
jsonpretty config.json
jsonpretty -v response.json # validate only
jsonpretty -c data.json # compact

Options

FlagDescription
-v, --validateValidate only, don't print
-c, --compactCompact/minimize output
-t, --tabUse tabs for indentation

License

MIT

About

Pretty-print and validate JSON from stdin or files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages