Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Collection of common Jackson datatype modules not part of other multi-project repos

License

NotificationsYou must be signed in to change notification settings

FasterXML/jackson-datatypes-misc

Repository files navigation

This is a multi-module umbrella project for variousJacksondatatype modules to support 3rd party libraries.

Currently included are:

Note that this repo was created for Jackson 2.11: prior to this, individual datatypemodules had their own repositories.

License

All modules are licensed underApache License 2.0.

Status

TypeStatus
Build (CI)Build (github)
Code coverage (2.18)codecov.io

Usage

Maven dependency

To use module (version 2.x) on Maven-based projects, use dependency like(for which module(s) you want):

<dependency>  <groupId>com.fasterxml.jackson.datatype</groupId>  <artifactId>jackson-datatype-json-org</artifactId>  <version>2.18.3</version></dependency>

(or whatever version is most up-to-date at the moment)

Registering module

To use the datatype module(s) with Jackson, simply register itwith theObjectMapper instance:

// import com.fasterxml.jackson.datatype.jsonorg.JsonOrgModule;// ... and so on// Jackson 2.x before 2.10:ObjectMappermapper =newObjectMapper();mapper.registerModule(newJsonOrgModule());mapper.registerModule(newJodaMoneyModule());// ONE of these (not both):mapper.registerModule(newJSR353Module());// old (javax) json-p APImapper.registerModule(newJSONPModule());// new (jakarta) json-P API// OR Jackson 2.10 and aboveObjectMappermapper =JsonMapper.builder()    .addModule(newJsonOrgModule())    .addModule(newJodaMoneyModule())// ONE of these (not both):    .addModule(newJavaxMoneyModule())    .addModule(newMonetaMoneyModule())// ONE of these (not both):    .addModule(newJSR353Module())// old (javax) json-p API    .addModule(newJSONPModule())// new (jakarta) json-P API    .build();

after which datatype read/write support is available for all normal Jackson operations.

About

Collection of common Jackson datatype modules not part of other multi-project repos

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors16


[8]ページ先頭

©2009-2025 Movatter.jp