summaryrefslogtreecommitdiffstats
path: root/module/remote/json_converter.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/json_converter.py')
-rw-r--r--module/remote/json_converter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/remote/json_converter.py b/module/remote/json_converter.py
index ad7645ccc..5b85f30cd 100644
--- a/module/remote/json_converter.py
+++ b/module/remote/json_converter.py
@@ -11,6 +11,9 @@ import ttypes
from ttypes import BaseObject
from ttypes import ExceptionObject
+# compact json separator
+separators = (',', ':')
+
# json encoder that accepts TBase objects
class BaseEncoder(json.JSONEncoder):
@@ -34,6 +37,7 @@ def convert_obj(dct):
def dumps(*args, **kwargs):
kwargs['cls'] = BaseEncoder
+ kwargs['separators'] = separators
return json.dumps(*args, **kwargs)