diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-07-12 13:55:32 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-07-13 10:25:03 +0200 |
| commit | f5669fd7b568cf8a3eda1e65c1c6fb583c7b177d (patch) | |
| tree | 12c8ad97657de561c7c3f0dcc00aef4f67396341 /docs/ref/request-response.txt | |
| parent | 22fbebc7444c8974f101c146f0fc18fe64ab48f6 (diff) | |
Fixed #32899 -- Added note about avoiding non-dict objects in JsonResponse docs.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index a34880a4be..747cb0ea6b 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -1092,6 +1092,10 @@ parameter to ``False``:: 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:: Before the `5th edition of ECMAScript |
