Dumping a string that contains unicode characters as json produces weird unicode escape sequences:
text = \"⌂⚘いの法嫁\" print(text) # output: ⌂⚘いの法嫁 import json js
Call json.dumps with ensure_ascii=False:
ensure_ascii=False
json_string = json.dumps(json_dict, ensure_ascii=False)
On Python 2, the return value will be unicode instead of str, so you might want to encode it before doing anything else with it.
unicode
str
encode