Use JsonResponse in CBV examples.

not sure if transformations would be better done here or by using a custom `encoder` class with `JsonResponse`?