JayWay - Reading the Response -Json Array Response- JsonPath query
JayWay Repsonse: JsonPath quest 1- //single attribute : List<?> List<Object> lst = dc.read("$[?(@.price>54)].price"); //mutlple attribute : List<Map<String,Object>> List<Map<String, Object>> ListHashThree = dc.read("$[?(@.category=='jewelery')].['title','price','id']"); package JaywayJsonPath; import static io.restassured.RestAssured.given; import java.util.List; import org.testng.annotations.Test; import com.jayway.jsonpath.JsonPath; import com.jayway.jsonpath.ReadContext; import io.restassured.RestAssured; import io.restassured.response.Response; public class JayWayJsonResponse { @Test public void fakeJayWayTest() { ...