
com.dslplatform.json.ConfigureJodaTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl-json-joda Show documentation
Show all versions of dsl-json-joda Show documentation
DSL Platform compatible Java JSON library (https://dsl-platform.com)
package com.dslplatform.json;
public class ConfigureJodaTime implements Configuration {
@Override
public void configure(DslJson json) {
json.registerReader(org.joda.time.LocalDate.class, JodaTimeConverter.LocalDateReader);
json.registerWriter(org.joda.time.LocalDate.class, JodaTimeConverter.LocalDateWriter);
json.registerReader(org.joda.time.DateTime.class, JodaTimeConverter.DateTimeReader);
json.registerWriter(org.joda.time.DateTime.class, JodaTimeConverter.DateTimeWriter);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy