I want to know how I can extract a List as response from the jersey-2.0 client.
I have already tried this,
Li
First add jackson dependency
org.glassfish.jersey.media
jersey-media-json-jackson
2.27
Then create Client Config
ClientConfig config = new ClientConfig();
config.register( JacksonFeature.class );
Finally create the client through the ClientConfig
List list = ClientBuilder.newClient( config )
.target( uri )
.request()
.get( Response.class )
.readEntity( List.class );