diff options
| author | 2019-09-10 15:08:06 +0100 | |
|---|---|---|
| committer | 2019-09-10 15:08:06 +0100 | |
| commit | ef7da3409bc0ee24e5912555ede4412d5fe86e5f (patch) | |
| tree | ce7f0da09dc55772ee5ef2be855092f62f32227d /modules/rest_api.py | |
| parent | duplicate 'rest-api' setting - copypaste issue for rest-api-minify (diff) | |
| signature | ||
don't bother sorting json keys when the json is minified
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index eb0aa11a..67fcb786 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -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") |
