#18023: Stop bundling simplejson and deprecate the module -------------------------------------+------------------------------------- Reporter: ogier | Owner: aaugustin Type: | Status: closed Cleanup/optimization | Version: master Component: Core | Resolution: fixed (Serialization) | Triage Stage: Accepted Severity: Release blocker | Needs documentation: 0 Keywords: | Patch needs improvement: 0 Has patch: 0 | UI/UX: 0 Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by stavros): I would like to revisit this, as I (django-annoying) have been bitten by the bug above (the `simplejson.dumps({'hi':'there'}, cls=DjangoJSONEncoder)` one). Right now, even just using `django.utils.simplejson` with `DjangoJSONEncoder`, as above, breaks. Changing the import statement in `django.core.serializers` to `from django.utils import simplejson as json` fixes this, as it imports from the same module as Django's provided JSON library, which is, at least, consistent. I think this switch should be made, to stop modules using Django-provided serializers from breaking, at least. -- Ticket URL: <https://code.djangoproject.com/ticket/18023#comment:13> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.