Skip to content
Myr

Update out of date jsonify documentation

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

https://github.com/pallets/flask/pull/2193 changed the conditions for when jsonify pretty prints, but this comment wasn't updated.

authored by asilversempirical · committed by GitHub · parent ae1ac20 · Browse files · 1 file+4 added−5 removed
This commit

State

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

Trailers

  • https: //github.com/pallets/flask/pull/2193 changed the conditions for when jsonify pretty prints, but this comment wasn't updated.

Diff stats

1 file+4 added−5 removed

  • other:+4 added−5 removed

1 file+4 added−5 removed

modified:flask/json.py+4 added-5 removed
234 unmodified lines
235 .. versionchanged:: 0.11236 Added support for serializing top-level arrays. This introduces a237 security risk in ancient browsers. See :ref:`json-security` for details.238239 This function's response will be pretty printed if it was not requested240 with ``X-Requested-With: XMLHttpRequest`` to simplify debugging unless241 the ``JSONIFY_PRETTYPRINT_REGULAR`` config parameter is set to false.242 Compressed (not pretty) formatting currently means no indents and no243 spaces after separators.239 This function's response will be pretty printed if the240 ``JSONIFY_PRETTYPRINT_REGULAR`` config parameter is set to True or the241 Flask app is running in debug mode. Compressed (not pretty) formatting242 currently means no indents and no spaces after separators.243244 .. versionadded:: 0.2245 """246
22 unmodified lines