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