extracting data using json path methods

Solutions on MaxInterview for extracting data using json path methods by the best coders in the world

showing results for - "extracting data using json path methods"
Elías
02 May 2018
1Response response =
2                given()
3                        .log().all()
4//                        .baseUri("http://www.omdbapi.com")
5                        .queryParam("apikey","26aa5b74")
6                        .queryParam("t","Boss Baby").
7                when()
8                        .get("http://www.omdbapi.com");
9// the JsonPath is a class that have a lot of methods
10// to get the body data in different format or data types
11// we get object by calling themethod of Response object called .jsonPath()
12        JsonPath jp = response.jsonPath();
13        // get the title as String
14        String title = jp.getString("Title") ;