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))


Popular posts from this blog

Subclassing and Signal connect on a same widget crashes PySide application on exit.

Calling OpenCV functions via Cython from Python 3.X.

Showing CPU/Memory usage on tmux status bar(tmuxのステータスバーにCPUとMemoryの使用状況を表示する)