python json dump utf8
data = {
"name": "foo",
"age": 27
}
with open("test.json", 'w', encoding='utf8') as outfile:
json.dump(data, outfile, indent=2)
python json dump utf8
data = {
"name": "foo",
"age": 27
}
with open("test.json", 'w', encoding='utf8') as outfile:
json.dump(data, outfile, indent=2)
python write json to file utf8
open(jsonfile , "w", encoding="utf8").write(json.dumps(file,indent=4, ensure_ascii=False))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us