I'm using Python to create a data.json file and write a json object to it.
with open('data.json', 'w', encoding='utf-8') as f:
util.json.dump(jsonData, f, ensure_ascii=False, indent=4)
where jsonData = {'Book': {'author': 'John Black', 'description': 'When....
When I locate data.json file on my computer and open it to modify the content, instead of {'Book': {'author':... I see null printed in the file.
I don't understand why it is happening, jsonData is not null, I printed it out before manipulating to double-check.
Thank you for your help in advance! =)
util.json.dump. Just usingjson.dump()works fine here