Can not find deserialize for non-concrete Collection type
I'm using the jackson library to map JSON into objects. I've simplified the problem a lot , this is what happens: public class MyObject{ public ForeignCollection<MySecondObject> getA(){ return null; } public ForeignCollection<MyThirdObject> getB(){ return null; } } I'm parsing the an empty JSON string: ObjectMapper mapper = new ObjectMapper(); mapper.readValue("{}", MyObject.class); On readValue , I get this Exception: com.fasterxml.jackson.databind.JsonMappingException: Can not find a deserializer for non-concrete Collection type [collection type; class com.j256.ormlite.dao.ForeignCollection,