commit | e8658e7d84c53e509ce92666489b97e9d8f66c29 | [log] [tgz] |
---|---|---|
author | Tatu Saloranta <tsaloranta@gmail.com> | Sun Nov 11 15:44:17 2012 -0800 |
committer | Tatu Saloranta <tsaloranta@gmail.com> | Sun Nov 11 15:44:17 2012 -0800 |
tree | 5698ab365d93a7c2f9e908b505ea70173e546f32 | |
parent | 62c5fcea3c911783d3e8a5fd50d16c11a878a277 [diff] |
[maven-release-plugin] prepare for next development iteration
This project contains core core low-level incremental ("streaming") parser and generator abstractions used by Jackson Data Processor. It also includes the default implementation of handler types (parser, generator) that handle JSON format. The core abstractions are not JSON specific, although naming does contain 'JSON' in many places, due to historical reasons. Only packages that specifically contain word 'json' are JSON-specific.
This package is the base on which Jackson data-binding package builds on.
Alternate data format implementations (like Smile (binary JSON), XML and CSV) also build on this base package, implementing the core interfaces, making it possible to use standard data-binding package regardless of underlying data format.
Project contains versions 2.0 and above: source code for earlier (1.x) versions is available from Codehaus SVN repository.
Project contains versions 2.0 and above: source code for earlier (1.x) versions is available from Codehaus SVN repository
Note that the main differences compared to 1.0 core jar are:
com.fasterxml.jackson.core
(instead of org.codehaus.jackson
)Functionality of this package is contained in Java package com.fasterxml.jackson.core
.
To use databinding, you need to use following Maven dependency:
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.0.6</version> </dependency>
or download jars from Maven repository or Download page. Core jar is a functional OSGi bundle, with proper import/export declarations.
Package has no external dependencies, except for testing (which uses JUnit
).
For non-Maven use cases, you download jars from Central Maven repository or Download page.
Core jar is also a functional OSGi bundle, with proper import/export declarations, so it can be use on OSGi container as is.
Usage typically starts with creation of a reusable (and thread-safe, once configured) JsonFactory
instance:
JsonFactory factory = new JsonFactory(); // configure, if necessary: factory.enable(JsonParser.Feature.ALLOW_COMMENTS);
Alternatively, you have a ObjectMapper
(from Jackson Databind package) handy; if so, you can do:
JsonFactory factory = objectMapper.getJsonFactory();
All reading is by using JsonParser
(or its sub-classes, in case of data formats other than JSON), instance of which is constructed by JsonFactory
:
(TO BE WRITTEN)
All writing is by using JsonGenerator
(or its sub-classes, in case of data formats other than JSON), instance of which is constructed by JsonFactory
:
(TO BE WRITTEN)
Project-specific documentation:
Related: