Use JsonResponse in CBV examples.

omit newline