changed rest of json.loads(request.POST.keys()[0]) to use request.body