Used JsonResponse in CBV examples.

Thanks Hiroki Kiyohara and Tim Graham for the reviews.