I want to know how I can extract a List as response from the jersey-2.0 client.
List
jersey-2.0
I have already tried this,
Li
String listString= serviceResponse.readEntity(String.class); Gson gson=new Gson(); Type type = new TypeToken>(){}.getType(); List list = gson.fromJson(listString, type);
Get response string and then convert to List by using gson library