write dict to json file with special characters

35

with open(filename, 'w', encoding='utf-8') as file:
    json.dump(data, file, ensure_ascii=False)

Comments

Submit
0 Comments