程序包 | 说明 |
---|---|
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.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
限定符和类型 | 字段和说明 |
---|---|
protected JsonNodeFactory |
DeserializationConfig._nodeFactory
Factory used for constructing
JsonNode instances. |
限定符和类型 | 方法和说明 |
---|---|
JsonNodeFactory |
ObjectMapper.getNodeFactory()
Method that can be used to get hold of
JsonNodeFactory
that this mapper will use when directly constructing
root JsonNode instances for Trees. |
JsonNodeFactory |
DeserializationContext.getNodeFactory() |
JsonNodeFactory |
DeserializationConfig.getNodeFactory() |
限定符和类型 | 方法和说明 |
---|---|
ObjectReader |
ObjectMapper.reader(JsonNodeFactory f)
Factory method for constructing
ObjectReader that will
use specified JsonNodeFactory for constructing JSON trees. |
ObjectMapper |
ObjectMapper.setNodeFactory(JsonNodeFactory f)
Method for specifying
JsonNodeFactory to use for
constructing root level tree nodes (via method
ObjectMapper.createObjectNode() |
ObjectReader |
ObjectReader.withNodeFactory(JsonNodeFactory f)
Method for constructing a new reader instance with configuration that uses
passed
JsonNodeFactory for constructing JsonNode
instances. |
DeserializationConfig |
DeserializationConfig.withNodeFactory(JsonNodeFactory f)
Fluent factory method that will construct a new instance with
specified
JsonNodeFactory |
构造器和说明 |
---|
DeserializationConfig(DeserializationConfig src,
JsonNodeFactory f) |
限定符和类型 | 字段和说明 |
---|---|
static JsonNodeFactory |
JsonNodeFactory.instance
Default singleton instance that construct "standard" node instances:
given that this class is stateless, a globally shared singleton
can be used.
|
构造器和说明 |
---|
ArrayNode(JsonNodeFactory nc) |
ContainerNode(JsonNodeFactory nc) |
ObjectNode(JsonNodeFactory nc) |