Re: decimal is not json serializable.

2010-01-14 Thread Simon Brunning
2010/1/14 Meenu : > Hello all, > > I'm following the "Serializing Django objects" documentation and have > a view pretty much verbatim from the docs: > >        if xhr: >            return HttpResponse(simplejson.dumps(form_data), > mimetype='application/javascript') > > When I test the above view

Re: decimal is not json serializable.

2010-01-14 Thread Shawn Milochik
You could always convert decimals to strings. There's probably a better solution out there, but this should at least be a quick-fix. Shawn-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegr

decimal is not json serializable.

2010-01-14 Thread Meenu
Hello all, I'm following the "Serializing Django objects" documentation and have a view pretty much verbatim from the docs: if xhr: return HttpResponse(simplejson.dumps(form_data), mimetype='application/javascript') When I test the above view using the Django shell, it works,