Jackson Glossary: JsonNode
Package: org.codehaus.jackson
Jar: jackson-core
Role
This is the main abstract for nodes that for trees of Tree Model that Jackson implements. Base class contains all read-access methods (including ones only applicable to some subtypes like JSON Arrays and Objects), but not mutators.
Base type is included in core package because of convenience methods that JsonParser exposes for data binding. All implementation types are in mapper packages
Usage
Trees can be constructed either by data binding (in which case ObjectMapper has methods to read JSON as trees), or by explicitly constructing tree nodes using JsonNodeFactory.
JsonNodeFactory is both API and default implementation; so while it can used as is (to produce default node implementations), it can also be extended to produce custom node types.
Sub-types
Concrete implementations are included in Java package org.codehaus.jackson.node, within mapper package.
Back to Jackson Term Glossary
