Allow unicode characters in json export

This commit is contained in:
Nick Hall 2018-04-08 23:52:15 +01:00
parent d3892c0e82
commit 9ee777274c

View File

@ -75,7 +75,7 @@ def to_json(obj):
:returns: A JSON string. :returns: A JSON string.
:rtype: str :rtype: str
""" """
return json.dumps(obj, default=__default) return json.dumps(obj, default=__default, ensure_ascii=False)
def from_json(data): def from_json(data):
""" """