fix json from here https://bitbucket.org/jespern/django-piston/pull-request/25/compatibility-fix-for-json-emitter-with/