You are definitely right. I hadn't considered complex types or pypy.

Sorry.

Bernardo Heynemann
Developer @ globo.com


On Tue, Apr 23, 2013 at 11:43 AM, Matt Robenolt <notifications@github.com>wrote:

> In sentry/utils/json.py:
>
> >  from django.core.serializers.json import DjangoJSONEncoder
> > -from django.utils import simplejson
> > +# Django 1.5 deprecates the use of their internal JSON library.  This can cause
> > +# some strange issues if you also have simplejson installed:
> > +# https://docs.djangoproject.com/en/dev/releases/1.5/#system-version-of-simplejson-no-longer-used
>
> ultrajson is not compatible with simplejson. I don't know all of the
> specific details, but it doesn't handle different encoders for complex
> types.
>
> Also, it won't work with pypy for obvious reasons.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/getsentry/sentry/pull/563/files#r3917028>
> .
>