diff options
Diffstat (limited to 'libs/json_tools.py')
-rw-r--r-- | libs/json_tools.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/json_tools.py b/libs/json_tools.py new file mode 100644 index 0000000..6354531 --- /dev/null +++ b/libs/json_tools.py @@ -0,0 +1,6 @@ +import json + + +class JsonSerializable(object): + def __repr__(self): + return json.dumps(self.__dict__) |