Jackson-datatype-jdk7

Add-on module for Jackson (http://jackson.codehaus.org) to support JDK 7 data types.

License

License

Categories

Categories

Data Jackson JSON
GroupId

GroupId

com.fasterxml.jackson.datatype
ArtifactId

ArtifactId

jackson-datatype-jdk7
Last Version

Last Version

2.6.7
Release Date

Release Date

Type

Type

bundle
Description

Description

Jackson-datatype-jdk7
Add-on module for Jackson (http://jackson.codehaus.org) to support JDK 7 data types.
Project URL

Project URL

http://github.com/FasterXML/jackson-datatype-jdk7/
Project Organization

Project Organization

FasterXML
Source Code Management

Source Code Management

http://github.com/FasterXML/jackson-datatype-jdk7

Download jackson-datatype-jdk7

Dependencies

compile (2)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-core jar 2.6.7
com.fasterxml.jackson.core : jackson-databind jar 2.6.7

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Project for Jackson module (jar) that adds supports for JDK datatypes included in version 7 which can not be directly supported by core databind due to baseline being JDK 6.

Status

Build Status Maven Central Javadoc

Starting with Jackson 2.7, this module will be DEPRECATED, as its handlers will be incorporated directly in core Databind.

Module is supported up until Jackson 2.6.

Usage

Maven dependency

To use module on Maven-based projects, use following dependency:

<dependency>
  <groupId>com.fasterxml.jackson.datatype</groupId>
  <artifactId>jackson-datatype-jdk7</artifactId>
  <version>2.6.2</version>
</dependency>    

Registering module

Like all standard Jackson modules (libraries that implement Module interface), registration is done as follows:

ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new Jdk7Module());

after which functionality is available for all normal Jackson operations: you can read JSON into supported JDK7 types, as well as write values of such types as JSON, so that for example:

// TODO: real example
Path p = ...;
String json = mapper.writeValueAsString(p);
com.fasterxml.jackson.datatype

FasterXML, LLC

Versions

Version
2.6.7
2.6.6
2.6.5
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.6.0-rc4
2.6.0-rc3
2.6.0-rc2
2.6.0-rc1
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.5.0-rc1
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.4.0-rc2