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

This commit is contained in:
Daniel Hokka Zakrisson 2013-02-27 19:46:31 +01:00
parent e4b72c0fd5
commit cedfec763a

View file

@ -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)