Fixed #32899 -- Added note about avoiding non-dict objects in JsonResponse docs.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
parent
22fbebc744
commit
f5669fd7b5
|
@ -1092,6 +1092,10 @@ parameter to ``False``::
|
||||||
|
|
||||||
Without passing ``safe=False``, a :exc:`TypeError` will be raised.
|
Without passing ``safe=False``, a :exc:`TypeError` will be raised.
|
||||||
|
|
||||||
|
Note that an API based on ``dict`` objects is more extensible, flexible, and
|
||||||
|
makes it easier to maintain forwards compatibility. Therefore, you should avoid
|
||||||
|
using non-dict objects in JSON-encoded response.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
Before the `5th edition of ECMAScript
|
Before the `5th edition of ECMAScript
|
||||||
|
|
Loading…
Reference in New Issue