prettify json response python code example Example: pretty json python print(json.dumps(dict, indent=4))