python format a json output to only show numbers code example
Example 1: response.json results in pretty data python
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))
Example 2: python format json file
python3 -m json.tool unformatted.json > formatted.json