These are chat archives for Mashape/unirest-java

28th
Jul 2015
lszumel
@lszumel
Jul 28 2015 18:04
I can't get deserialization to work using the ObjectMapper example on the home page. The method in com.fasterxml.jackson.databind.ObjectMapper has signature readValue(String, Class<T>) while Unirest only has readValue(String). I don't have the appropriate type info to get the object deserialized. I'm using fasterxml 2.1.1 -- what version is Unirest compatible with?
Fabio Piro
@dewos
Jul 28 2015 19:17
@lszumel That is a mistake of mine, I messed up the commits order, sorry. I'll fix it soon.
lszumel
@lszumel
Jul 28 2015 19:35
OK cool, I'll look for that change. Right now I am getting the response asString() and using an ObjectMapper.getValue(response.getBody(), MyExpectedResponse.class) to deserialize. Works fine. Thanks!
Fabio Piro
@dewos
Jul 28 2015 20:27
Fixed in Mashape/unirest-java#104