LoginSignup
24
19

More than 5 years have passed since last update.

日本語を含むUnicodeのJSON文字列を得る.

Last updated at Posted at 2012-03-16
dump.py
import json
data = {u'title': u'ほげ'}
json_data = json.dumps(data, ensure_ascii=False)

細いことはここ -> http://www.python.jp/doc/2.6/library/json.html

24
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
19