diff options
Diffstat (limited to 'libs/json_tools.py')
-rw-r--r-- | libs/json_tools.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/json_tools.py b/libs/json_tools.py index 6354531..5e78d23 100644 --- a/libs/json_tools.py +++ b/libs/json_tools.py @@ -3,4 +3,7 @@ import json class JsonSerializable(object): def __repr__(self): - return json.dumps(self.__dict__) + return str(self.to_json()) + + def to_json(self): + return json.dumps(self.__dict__, ensure_ascii=False) |