Answers for "response.json results in pretty data python"

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))
Posted by: Guest on April-03-2020
2

pretty json python

print(json.dumps(dict, indent=4))
Posted by: Guest on November-09-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language