how to pretify the json in python code example Example: python json.dumps pretty print json.dumps(x, indent=4)