from django.utils import simplejson

def my_ajax_view(request):
    return HttpResponse(simplejson.dumps(some_data), mimetype=
        'application/json')
Pass information from javascript to django app and back