Package | Description |
---|---|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.map.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) . |
Modifier and Type | Method and Description |
---|---|
void |
ObjectMapper.registerModule(Module module)
Method for registering a module that can extend functionality
provided by this mapper; for example, by adding providers for
custom serializers and deserializers.
|
ObjectMapper |
ObjectMapper.withModule(Module module)
Fluent-style alternative to
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) ; functionally equivalent to:
mapper.registerModule(module);
return mapper;
NOTE: name is unfortunately misleading in suggesting that a new instance
might be created (as is the case with most other 'withXxx()' methods
for Jackson core objects) -- this is not the case; rather, this is just
a variant of ObjectMapper.registerModule(org.codehaus.jackson.map.Module) but one that returns 'this'
(like it should return, but does not for historical reasons). |
Modifier and Type | Class and Description |
---|---|
class |
SimpleModule
Simple
Module implementation that allows registration
of serializers and deserializers, and bean serializer
and deserializer modifiers. |