I have tried this ,
List<String> list=client.target(url).
request(MediaType.APPLICATION_JSON).get(new GenericType<List<String>>(){});
but I am not getting the list instead I am getting null value
I have tried this ,
List<String> list=client.target(url).
request(MediaType.APPLICATION_JSON).get(new GenericType<List<String>>(){});
but I am not getting the list instead I am getting null value
Take your Response in the Response Object and then parse the Response Object using
readEntity()
method.Here is a quick code snippet:
1) Take your Response in the then parse the Response Object using readEntity() method.
Get response string and then convert to List by using gson library