why are you not using JsonResponse? just to avoid dependencies?