format curl response json code example
Example 1: curl output pretty print
curl ... | json_pp
Example 2: curl pretty print json
echo '{"foo": "lorem", "bar": "ipsum"}' | jq
curl ... | json_pp
echo '{"foo": "lorem", "bar": "ipsum"}' | jq