import json

def parse_request(request):
    d = {}
    for (k,v) in request.DATA.items():
        d[k] = json.loads(v) 


import json

def parse_request(request):
    d = {}
    for (k,v) in request.items():
        d[k] = json.loads(v) 


fix AttributeError