Opened 4 years ago
Last modified 4 years ago
#32899 closed Cleanup/optimization
enhance JSONResponse safe=True kwarg docs — at Version 1
| Reported by: | Thomas Grainger | Owned by: | Simon Willison |
|---|---|---|---|
| Component: | Documentation | Version: | 3.2 |
| Severity: | Normal | Keywords: | |
| Cc: | Simon Willison | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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
Note:
See TracTickets
for help on using tickets.