def METHOD_NAME(self, request):
    data = json.loads(request.body)
    form = self.get_form(data)
    if form.is_valid():
        self.form_valid(form)
        return HttpResponse()
    return HttpResponseBadRequest()