sample code:
>>> import json >>> json_string = json.dumps(\"ברי צקלה\") >>> print json_string \"\\u05d1\\u05e8\\u05d9 \\u05e6\\u05
As of Python 3.7 the following code works fine:
from json import dumps result = {"symbol": "ƒ"} json_string = dumps(result, sort_keys=True, indent=2, ensure_ascii=False) print(json_string)
Output:
{"symbol": "ƒ"}