I have a JSON response and i am extracting the body using getbody() command and storing the responses in list. because i am passing multiple JSON at a time so each response i am storing in list as string value. How can i extract that JSON using JAVA?
response = request.post(route.payment());
body = response.getBody();
listofBody.add(body.asString());
above code is where i get the response and store that into list. before converting to JSON i can do response.jsonPath().getList("company");
to get the values