Jersey REST retrieve List of custom object

It took me while to understand how one require to retrieve generic object from ClientResponse. I had an array of objects in Json format as a response of an REST api, which I was trying to deserialize it into List<CustomObject> refer below sample. ClientResponse rsp = webresource.path(id.toString()).type(MediaType.APPLICATION_JSON).get(ClientResponse.class); List<CustomObject> list = rsp.getEntity(new GenericType<List<CustomObject>>(CustomObject.class)); But I kept on getting following Error: Caused by: org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of test.CustomObject out of START_ARRAY token at [Source: sun. [Read More]