On Jun 17, 10:31 am, Ian McDowall <i.d.mcdow...@gmail.com> wrote: > > In some cases, I don't use templates to build a JSON response. It can > be straightforward to write it as a string inline. I don't personally > yet use the built in Python JSON module as I don't want to limit the > Python versions that I can deploy with but I am sure that I will move > to this at some point.
Django comes with simplejson as django.utils.simplejson (it was in 1.0) - and to quote from the docs for 1.1 and 1.2: The Django source code includes the simplejson module. However, if you're using Python 2.6 (which includes a builtin version of the module), Django will use the builtin json module automatically. If you have a system installed version that includes the C-based speedup extension, or your system version is more recent than the version shipped with Django (currently, 2.0.7), the system version will be used instead of the version included with Django. Regards, Matt -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.