#25254: Allow control over json.dumps keyword arguments in JsonResponse
-------------------------------------+-------------------------------------
Reporter: jaap3 | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: json dumps indent | Triage Stage:
separators jsonresponse | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by jaap3):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
A partial workaround for this is to create a custom encoder class that
sets the desired values for `indent` and `separators`, this won't work as
well for other `kwargs` as there are defaults sets in `dumps`.
--
Ticket URL: <https://code.djangoproject.com/ticket/25254#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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.f4d8d5da6f16f3ae707928183678e098%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.