python json dump utf8
data = {
"name": "foo",
"age": 27
}
with open("test.json", 'w', encoding='utf8') as outfile:
json.dump(data, outfile, indent=2)
Are there any code examples left?
New code examples in category Python
data = {
"name": "foo",
"age": 27
}
with open("test.json", 'w', encoding='utf8') as outfile:
json.dump(data, outfile, indent=2)