added sendJsonResponse