Valid response with next action to be followed by the JS

def json_to_response(self, action=None, json_status=None, success_url=None,
                         json_data=None, **response_kwargs):
        """ Valid response with next action to be followed by the JS """
        data = {
            "status": self.get_status(json_status),
            "action": self.get_action(action),
            "extra_data": self.get_json_data(json_data or {})
        }

        if self.action == AjaxResponseAction.REDIRECT:
            data["action_url"] = success_url or self.get_success_url()
        return JsonResponse(data, **response_kwargs)