[PYTHON] Get a Unicode JSON string containing Japanese.

dump.py


import json
data = {u'title': u'Hoge'}
json_data = json.dumps(data, ensure_ascii=False)

The details are here-> http://www.python.jp/doc/2.6/library/json.html

Recommended Posts

Get a Unicode JSON string containing Japanese.
String conversion of a list containing numbers
Extract lines containing a specific "string" in Pandas
Get a row containing a specific element in np.where
Parse a JSON string written to a file in Python
Get the variable name of the variable as a character string.
I get a java.util.regex.PatternSyntaxException when splitting a string in PySpark
Output unicode string list
[Command] Command to get a list of files containing double-byte characters
Garbled characters when printing an array containing a string containing utf-8
[Addition] A memo for dividing a character string containing multiple spaces