When I want to save my JSON it adds backslashes and double quotes to it. So the single quote around is getting replaced with double quotes and it adds the slashes
'{"created_at":"foo","created_by":"foo"}'
So when I open the saved file it looks like this
"{\"created_at\":\"foo\",\"created_by\":\"foo\"}"
and i need to have it like this
{"created_at":"foo","created_by":"foo"}
My code looks like this: For saving
with open('data3.json', 'w', encoding='utf-8') as f:
json.dump(data3, f, ensure_ascii=False)