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