Skip to content

clarabennettdev/jsonpretty

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.

Go License: MIT Go 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

Flag Description
-v, --validate Validate only, don't print
-c, --compact Compact/minimize output
-t, --tab Use tabs for indentation

License

MIT

About

Pretty-print and validate JSON from stdin or files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages