added php's default arguments to getData method of JsonResponse