how to json dump in pretty print format in python code example Example: pretty json python print(json.dumps(dict, indent=4))