added a note to the api documentation about JSON_SORT_KEYS. Fixes #922
This commit is contained in:
parent
b2971ec68c
commit
ea656a8909
1 changed files with 6 additions and 0 deletions
|
|
@ -385,6 +385,12 @@ you are using Flask 0.10 which implies that:
|
||||||
doSomethingWith({{ user.username|tojson|safe }});
|
doSomethingWith({{ user.username|tojson|safe }});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
.. 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:: jsonify
|
||||||
|
|
||||||
.. autofunction:: dumps
|
.. autofunction:: dumps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue