# -*- coding: utf-8 -*-

from django.http import HttpResponse
from django.utils import simplejson

def JSONResponse(data):
    return HttpResponse(simplejson.dumps(data), mimetype='application/json')


# -*- coding: utf-8 -*-

from django.http import HttpResponse
import json

def JSONResponse(data):
    return HttpResponse(json.dumps(data), content_type='application/json')


Fix JSONResponse to work without complaints on django 1.6