I want to know how I can extract a List as response from the jersey-2.0 client.
I have already tried this,
Li
You can get your service response as Response class object and, then parse this object using readEntity(...) method.
Here is a quick code snippet:
List list = client
.target(url)
.request(MediaType.APPLICATION_JSON)
.get(Response.class)
.readEntity(new GenericType>() {});
/* Do something with the list object */