Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to extract Object from data using Rest Assured
User user = given()
                .when()
                .get("https://reqres.in/api/unknown/2")
                .then()
                .extract()
                .jsonPath()
                .getObject("data", User.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.