Python write utf-8 JSON to file code example
Example 1: python write json to file utf8
open(jsonfile , "w", encoding="utf8").write(json.dumps(file,indent=4, ensure_ascii=False))
Example 2: python json write utf 8
with open('speechbase.json', 'w') as jsonfile:
json.dump(DATA, jsonfile, indent = 4)