#32899: enhance JSONResponse safe=True kwarg docs
-------------------------------------+-------------------------------------
Reporter: Thomas Grainger | Owner: Simon
Type: | Willison
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Jacob Walls:
Old description:
> currently JSONResponse documents a `safe` kwarg
>
> ```
> Data to be dumped into json. By default only ``dict`` objects
> are allowed to be passed due to a security flaw before EcmaScript
> 5. See
> the ``safe`` parameter for more information.
> ```
>
> EcmaScript 5 is mostly dead, but there are other advantages to only
> sending dicts, see https://twitter.com/simonw/status/1410682522908856320
New description:
currently JSONResponse documents a `safe` kwarg
{{{
Data to be dumped into json. By default only ``dict`` objects
are allowed to be passed due to a security flaw before EcmaScript 5.
See
the ``safe`` parameter for more information.
}}}
EcmaScript 5 is mostly dead, but there are other advantages to only
sending dicts, see https://twitter.com/simonw/status/1410682522908856320
--
--
Ticket URL: <https://code.djangoproject.com/ticket/32899#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.cf98ea6a0e66021ca2b4333cb14cf122%40djangoproject.com.