Skip to content
Myr

Added a warning about key sorting

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent ccc2de1 · Browse files · 1 file+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−3 removed

  • other:+6 added−3 removed

1 file+6 added−3 removed

modified:docs/api.rst+6 added-3 removed
385 unmodified lines
386 </script>387388.. admonition:: Auto-Sort JSON Keys389390 The configuration variable ``JSON_SORT_KEYS`` (:ref:`config`) can be set to false to 391 stop Flask from auto-sorting keys. By default sorting is enabled and392 outside of the app context sorting is turned on.390 The configuration variable ``JSON_SORT_KEYS`` (:ref:`config`) can be391 set to false to stop Flask from auto-sorting keys. By default sorting392 is enabled and outside of the app context sorting is turned on.393394 Notice that disabling key sorting can cause issues when using content395 based HTTP caches and Python's hash randomization feature.396397.. autofunction:: jsonify398399.. autofunction:: dumps400
355 unmodified lines