Browse Source

Merge pull request #2231 from asilversempirical/patch-1

Update out of date jsonify documentation
pull/2211/merge
David Lord 8 years ago committed by GitHub
parent
commit
d04d36842b
  1. 9
      flask/json.py

9
flask/json.py

@ -236,11 +236,10 @@ def jsonify(*args, **kwargs):
Added support for serializing top-level arrays. This introduces a
security risk in ancient browsers. See :ref:`json-security` for details.
This function's response will be pretty printed if it was not requested
with ``X-Requested-With: XMLHttpRequest`` to simplify debugging unless
the ``JSONIFY_PRETTYPRINT_REGULAR`` config parameter is set to false.
Compressed (not pretty) formatting currently means no indents and no
spaces after separators.
This function's response will be pretty printed if the
``JSONIFY_PRETTYPRINT_REGULAR`` config parameter is set to True or the
Flask app is running in debug mode. Compressed (not pretty) formatting
currently means no indents and no spaces after separators.
.. versionadded:: 0.2
"""

Loading…
Cancel
Save