moved JsonResponse to Injection