added depth to setContent method of JsonResponse