I can use Unirest to get an object of my own class like this:
HttpResponse<Item> itemResponse = Unirest.get("http://localhost:8080/item").asObject(Item.class);
I can also set the type parameter to List
, which does give me a list of hash maps, but I'd like to get a list of items instead. Is this possible?