程序包 | 说明 |
---|---|
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.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
限定符和类型 | 方法和说明 |
---|---|
ArrayNode |
ObjectMapper.createArrayNode()
Note: return type is co-variant, as basic ObjectCodec
abstraction can not refer to concrete node types (as it's
part of core package, whereas impls are part of mapper
package)
|
限定符和类型 | 方法和说明 |
---|---|
protected ArrayNode |
JsonNodeDeserializer.deserializeArray(JsonParser jp,
DeserializationContext ctxt)
已过时。
since 1.9.0
|
限定符和类型 | 方法和说明 |
---|---|
ArrayNode |
ArrayNode.addArray()
Method that will construct an ArrayNode and add it as a
field of this ObjectNode, replacing old value, if any.
|
ArrayNode |
JsonNodeFactory.arrayNode()
Factory method for constructing an empty JSON Array node
|
ArrayNode |
ContainerNode.arrayNode()
Factory method that constructs and returns an empty
ArrayNode
Construction is done using registered JsonNodeFactory . |
ArrayNode |
ArrayNode.insertArray(int index) |
ArrayNode |
ObjectNode.putArray(String fieldName)
Method that will construct an ArrayNode and add it as a
field of this ObjectNode, replacing old value, if any.
|
ArrayNode |
ArrayNode.removeAll() |
限定符和类型 | 方法和说明 |
---|---|
JsonNode |
ArrayNode.addAll(ArrayNode other)
Method for adding all child nodes of given Array, appending to
child nodes this array contains
|