Jackson Glossary: JsonParser
Package: org.codehaus.jackson
Jar: jackson-core
Role
This is the parser abstraction for Streaming API. It is used not only with regular JSON, but is also used in some cases to add support for JSON-like data formats (like BSON, Smile, even xml), because of its simplicity and fact that Data Binding functionality (like ObjectMapper) is built directly on JsonParser. This means that supporting alternate data formats is easy if data can be exposed using JsonParser and/or JsonGenerator.
Usage
Instances are constructed using JsonFactory.
Sub-types
Main implementations used with textual JSON can be found from under org.codehaus.jackson.impl
- There are implementations for at least following additional data formats:
In-memory TokenBuffer (used for efficiently buffering JSON content)
"Smile", JSON-compatible binary format
- BSON (JSON-like binary data format used by MongoDB)
XML (via "xml" package, XmlMapper)
Related
Most of configuration is by enabling/disabling JsonParser.Feature options.
Back to Jackson Term Glossary
