  
  This mixin provides a ``render_to_json_response`` method with the same signature
  as :func:`~django.views.generic.base.TemplateResponseMixin.render_to_response()`.
  To use it, we simply need to mix it into a ``TemplateView`` for example,
  and override ``render_to_response`` to call ``render_to_json_response`` instead::
  
      from django.views.generic import TemplateView
  
      class JSONView(JSONResponseMixin, TemplateView):
          def render_to_response(self, context, **response_kwargs):
 
</s> remove This mixin provides a ``render_to_json_response`` method with the same signature
 </s> add This mixin provides a ``render_to_json_response()`` method with the same signature </s> remove     :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
 </s> add     :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response()` </s> remove     for ``get_object`` so we'll override that method and have it return
 </s> add     for ``get_object()`` so we'll override that method and have it return </s> remove     ``get_context_data`` returns a dictionary; in ``ContextMixin`` it
 </s> add     ``get_context_data()`` returns a dictionary; in ``ContextMixin`` it </s> remove     :meth:`~django.views.generic.base.ContextMixin.get_context_data` passing
 </s> add     :meth:`~django.views.generic.base.ContextMixin.get_context_data()` passing
and override ``render_to_response()`` to call ``render_to_json_response()`` instead::
  
  This mixin provides a ``render_to_json_response`` method with the same signature
  as :func:`~django.views.generic.base.TemplateResponseMixin.render_to_response()`.
  To use it, we simply need to mix it into a ``TemplateView`` for example,
and override ``render_to_response()`` to call ``render_to_json_response()`` instead::
  
      from django.views.generic import TemplateView
  
      class JSONView(JSONResponseMixin, TemplateView):
          def render_to_response(self, context, **response_kwargs):
keep keep keep keep replace keep keep keep keep keep
 Fixed #20658 -- Fixed bad reST formatting and missing parentheses in the docs for CBV mixins

Thanks to Keryn Knight for the report. 
docs/topics/class-based-views/mixins.txt