don't bother sorting json keys when the json is minified
This commit is contained in:
parent
9ac46bab7d
commit
ef7da3409b
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Response(object):
|
|||
self._data += data.encode("utf8")
|
||||
def write_json(self, obj):
|
||||
if self._compact:
|
||||
data = json.dumps(obj, sort_keys=True, separators=(",", ":"))
|
||||
data = json.dumps(obj, separators=(",", ":"))
|
||||
else:
|
||||
data = json.dumps(obj, sort_keys=True, indent=4)
|
||||
self._data += data.encode("utf8")
|
||||
|
|
Loading…
Reference in a new issue