When I open and write a valid json into a file with the command below, it writes newline and carriage return characters into the data.
with open('logs/output.json', 'w') as outfile:
json.dump(json_data, outfile, indent=2, separators=(',', ': '))
output.json looks something like this:
{\r\n \"config\": {\r\n \"app\": {\r\n \"calendar\": {\r\n \"{tenant-key}calendar.reference }
How can I prevent this?