Replaced django.utils.simplejson with the standard json module for Django 1.5+ compatibility