Jackson Joda ISO Library

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

Лицензия

Лицензия

Категории

Категории

JSON Данные Jackson
Группа

Группа

com.allogy.json
Идентификатор

Идентификатор

jackson-joda-iso
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Jackson Joda ISO Library
Provides support for serializing and deserializing Joda objects as ISO strings using Jackson.
Организация-разработчик

Организация-разработчик

Allogy Interactive LLC
Система контроля версий

Система контроля версий

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

Скачать jackson-joda-iso

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.mockito : mockito-core jar 1.9.5
org.hamcrest : hamcrest-integration jar 1.3

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0