Check out example codes for "response.json results in pretty data python". It will help you in understanding the concepts better.

Code Example 1

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))

Learn ReactJs, React Native from akashmittal.com