forked from orbit-oss/flask
Update out of date jsonify documentation
https://github.com/pallets/flask/pull/2193 changed the conditions for when jsonify pretty prints, but this comment wasn't updated.
This commit is contained in:
parent
ae1ac2053b
commit
d76d68cd38
1 changed files with 4 additions and 5 deletions
|
|
@ -236,11 +236,10 @@ def jsonify(*args, **kwargs):
|
||||||
Added support for serializing top-level arrays. This introduces a
|
Added support for serializing top-level arrays. This introduces a
|
||||||
security risk in ancient browsers. See :ref:`json-security` for details.
|
security risk in ancient browsers. See :ref:`json-security` for details.
|
||||||
|
|
||||||
This function's response will be pretty printed if it was not requested
|
This function's response will be pretty printed if the
|
||||||
with ``X-Requested-With: XMLHttpRequest`` to simplify debugging unless
|
``JSONIFY_PRETTYPRINT_REGULAR`` config parameter is set to True or the
|
||||||
the ``JSONIFY_PRETTYPRINT_REGULAR`` config parameter is set to false.
|
Flask app is running in debug mode. Compressed (not pretty) formatting
|
||||||
Compressed (not pretty) formatting currently means no indents and no
|
currently means no indents and no spaces after separators.
|
||||||
spaces after separators.
|
|
||||||
|
|
||||||
.. versionadded:: 0.2
|
.. versionadded:: 0.2
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue