Solution
Sử dụng findAll 2 lần, lồng vào nhau
@Test
void name8() {
String res = RestAssured.get("https://auto-test-challenges.herokuapp.com/challenge4restassured")
.asString();
JsonPath jsonPath = new JsonPath(res);
List<String> list = jsonPath.getList("findAll {it.batter.findAll {it.type == 'Chocolate'}}.name");
System.out.println(list); //[Choco Blueberry Cake]
}