This project contains some helpful (de)serializer implementations that can ease the usage of the Jackson libraries in combination with some other classes.
- jackson-extensions.jena: this module supports the handling of Apache Jena classes.
- jackson-extensions.maps: this module supports the handling of the generic
Map<K,V>interface and its implementations. - jackson-extensions.test-report: this module is only used to collect test reports and should be ignored by users.
The project does not offer Jackson modules. Please have a look into the projects and decide which (de)serializers you need. Then, just create a simple module and add them. For example, when working with the Map<K,V> class, you can register our implementations when creating an ObjectMapper instance as follows:
SimpleModule module = new SimpleModule();
module.addSerializer(Map.class, new ComplexMapSerializer());
module.addDeserializer(Map.class, new ComplexHashMapDeserializer());
module.addSerializer(HashMap.class, new ComplexMapSerializer());
module.addDeserializer(HashMap.class, new ComplexHashMapDeserializer());
ObjectMapper mapper = new ObjectMapper().registerModule(module);