Jun 23, 2015

Dump UTF-8 object to JSON file on Python.(JUST REMINDER for myself)

with open('xxx.json', 'w', encoding='utf-8') as f:
    f.write(json.dumps(obj, indent=2, ensure_ascii=False))

No comments: