Jackson Joda ISO Library

Provides support for serializing and deserializing Joda objects as ISO strings using Jackson.

License

License

Categories

Categories

JSON Data Jackson
GroupId

GroupId

com.allogy.json
ArtifactId

ArtifactId

jackson-joda-iso
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Jackson Joda ISO Library
Provides support for serializing and deserializing Joda objects as ISO strings using Jackson.
Project Organization

Project Organization

Allogy Interactive LLC
Source Code Management

Source Code Management

https://github.com/Allogy/jackson-joda-iso

Download jackson-joda-iso

How to add to project

<!-- https://jarcasting.com/artifacts/com.allogy.json/jackson-joda-iso/ -->
<dependency>
    <groupId>com.allogy.json</groupId>
    <artifactId>jackson-joda-iso</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.allogy.json/jackson-joda-iso/
implementation 'com.allogy.json:jackson-joda-iso:1.0'
// https://jarcasting.com/artifacts/com.allogy.json/jackson-joda-iso/
implementation ("com.allogy.json:jackson-joda-iso:1.0")
'com.allogy.json:jackson-joda-iso:jar:1.0'
<dependency org="com.allogy.json" name="jackson-joda-iso" rev="1.0">
  <artifact name="jackson-joda-iso" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.allogy.json', module='jackson-joda-iso', version='1.0')
)
libraryDependencies += "com.allogy.json" % "jackson-joda-iso" % "1.0"
[com.allogy.json/jackson-joda-iso "1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-core jar 2.2.2
com.fasterxml.jackson.core : jackson-databind jar 2.2.2
joda-time : joda-time jar 2.2

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-core jar 1.9.5
org.hamcrest : hamcrest-integration jar 1.3

Project Modules

There are no modules declared in this project.

jackson-joda-iso

Provides support for serializing and deserializing Joda objects as ISO 8601 strings using Jackson.

The existing Jackson support for Joda serializes Joda objects as objects specific to the class. This library allows us to serlialize our Joda objects as ISO 8601 strings so that they are highly compatible with other implementations.

"dateTime" : "2013-07-24T16:30:20.314-06:00",
"date": "2013-07-22",
"period": "P17Y4M",

Maven Usage

The project is available in Maven Central.

<dependency>
    <groupId>com.allogy.json</groupId>
    <artifactId>jackson-joda-iso</artifactId>
     <version>1.0</version>
</dependency>

Simple Usage Example

@JsonSerialize(using = ISODateTimeSerializer.class)
@JsonDeserialize(using = ISODateTimeDeserializer.class)
public DateTime getDateTime()
{
    return dateTime;
}

@JsonSerialize(using = ISODateTimeSerializer.class)
@JsonDeserialize(using = ISODateTimeDeserializer.class)
public void setDateTime(DateTime dateTime)
{
    this.dateTime = dateTime;
}

License

Copyright (c) 2013 Allogy Interactive.

Released under the Apache License, Version 2.0.

com.allogy.json

Allogy

Versions

Version
1.0