Order JSON keys by default to avoid trashing HTTP caches

This commit is contained in:
Armin Ronacher 2013-06-01 19:24:03 +01:00
parent 3d9055b3b7
commit 77d293cf49
5 changed files with 57 additions and 1 deletions

View file

@ -291,6 +291,7 @@ class Flask(_PackageBoundObject):
'TRAP_HTTP_EXCEPTIONS': False,
'PREFERRED_URL_SCHEME': 'http',
'JSON_AS_ASCII': True,
'JSON_SORT_KEYS': True,
'JSONIFY_PRETTYPRINT_REGULAR': True,
})