From ea656a89099ee848c42c871a8407242d853c0a09 Mon Sep 17 00:00:00 2001 From: Nicholas Zaccardi Date: Fri, 24 Jan 2014 19:21:24 -0600 Subject: [PATCH] added a note to the api documentation about JSON_SORT_KEYS. Fixes #922 --- docs/api.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 5faccc30..db550500 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -385,6 +385,12 @@ you are using Flask 0.10 which implies that: doSomethingWith({{ user.username|tojson|safe }}); +.. admonition:: Auto-Sort JSON Keys + + The configuration variable ``JSON_SORT_KEYS`` (:ref:`config`) can be set to false to + stop Flask from auto-sorting keys. By default sorting is enabled and + outside of the app context sorting is turned on. + .. autofunction:: jsonify .. autofunction:: dumps