I know that the pprint python standard library is for pretty-printing python data types. However, I\'m always retrieving json data, and I\'m wondering if there is a
pprint
import requests import json r = requests.get('http://server.com/api/2/....') pretty_json = json.loads(r.text) print (json.dumps(pretty_json, indent=2))