Formatting JSON in the terminal shouldn't require jq gymnastics.
Try this:
curl -s http://69.62.106.38:3107/format -d '{"key":"value","nested":{"a":1}}'
Returns pretty-printed, syntax-validated JSON. Also does:
- /minify — compress JSON
- /diff — compare two JSON objects
- /query — JMESPath queries
Self-hosted, no signup, no tracking.