snippets/old_snippets/pretty-print-json.en.md

414 B

title date draft snippet_types
pretty print json 2020-01-11T04:37:52+01:00 false
curl
json
$ curl -X GET https://some.json.endpoint.com | python -m json.tool

Need to check a API request but stuck reading a garbled mess. Try pipeing the result to python json.tool

source:

stackoverflow