Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python json dump utf8

data = { 
  "name": "foo",
  "age": 27
}
with open("test.json", 'w', encoding='utf8') as outfile:
    json.dump(data, outfile, indent=2)
 
PREVIOUS NEXT
Tagged: #python #json #dump
ADD COMMENT
Topic
Name
2+5 =