Related to #17942 -- removed json specific settings and
added safe parameter to JsonResponse