changed to JsonRequestResponseMixin and added require_json flag