|
@@ -67,8 +67,9 @@ def dump(filepath, data, options=None):
|
|
|
|
|
|
indent = options.get(constants.INDENT, True)
|
|
|
indent = 4 if indent else None
|
|
|
+ compact_separators = (',', ':')
|
|
|
logger.info("Dumping to JSON")
|
|
|
- func = lambda x, y: _json.json.dump(x, y, indent=indent)
|
|
|
+ func = lambda x, y: _json.json.dump(x, y, indent=indent, separators=compact_separators)
|
|
|
mode = 'w'
|
|
|
|
|
|
logger.info("Writing to %s", filepath)
|