jq
Pretty print JSON with jq
jq can be used to format JSON data and make it more readable. This can be useful when working with API responses.
Format API response from curl
$ curl https://some-json-server.com/api | jq '.'
Format JSON content in clipboard
$ pbpaste | jq '.' | pbcopy