jsonPath().getList returns ArrayList – how to convert to List<String>?
JsonPath jsonPath = response.jsonPath(); List<String> listOfProducts= jsonPath.getList("products.stock.availabilities.status"); for (int i = 0; i < listOfProducts.size(); i++) { String actualProduct = listOfProducts.get(i); ... } throws class java.util.ArrayList cannot be cast to class java.lang.String response in this case is: "products": [ {…