write dict to json file with special characters code example
Example: write dict to json file with special characters
with open(filename, 'w', encoding='utf-8') as file:
json.dump(data, file, ensure_ascii=False)
with open(filename, 'w', encoding='utf-8') as file:
json.dump(data, file, ensure_ascii=False)