diff options
author | gilad_ilsar <gandismidas1> | 2016-09-22 16:34:57 +0300 |
---|---|---|
committer | gilad_ilsar <gandismidas1> | 2016-09-22 16:34:57 +0300 |
commit | 3615e3968baa5a464a2725e280a7e0f89e3428cf (patch) | |
tree | 3300933e3c766c11f773287f76a4c9b4e4a31c87 /libs/json_tools.py | |
parent | f1dbf8f8085b3471d6db6183819ec7806d28f239 (diff) |
parser into csv
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) |