curl display pretty json code example Example: curl pretty print json echo '{"foo": "lorem", "bar": "ipsum"}' | jq