i try to Pretty print a JSON file, like i have a login system and the "Data" should get save there. But if i use
with open('authentication.json', 'w+') as outfile:
json.dump(data, outfile)
It outputs
{"username": "censored", "password": "censored"}
in the JSON file But it should Print this in the JSON
{
"username": "censored",
"password": "censored"
}