I am making a custom deserializer (extending
Jackson matches JSON structures with java classes. Just like JAXB maps java classes to XSD-s.
Class<?> (or JavaType) defines which java class belongs to this deserializer. These java classes can be anything that have the right annotations, like
Another question: why is this class generic? This is so because
[java.lang.Class] is generic. If you want to do it correctly, then you specify it like this:
StdDeserializer serializer = new StdDeserializer(YourClass.class);
The point is that the
StdSerializer does not bound the classes you can specify.