Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 926 Bytes

File metadata and controls

36 lines (25 loc) · 926 Bytes

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