changes all responses in APP controller to JsonResponse type