jsonify needs to return a string of {}, rather than a dict

parent e4b72c0f
......@@ -122,7 +122,7 @@ def jsonify(result, format=False):
''' format JSON output (uncompressed or uncompressed) '''
if result is None:
return {}
return "{}"
result2 = result.copy()
if format:
return json.dumps(result2, sort_keys=True, indent=4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment