dsl_json.java.time.ZonedDateTimeDslJsonConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl-json-java8 Show documentation
Show all versions of dsl-json-java8 Show documentation
DSL Platform compatible Java JSON library (https://dsl-platform.com)
package dsl_json.java.time;
import com.dslplatform.json.Configuration;
import com.dslplatform.json.DslJson;
import com.dslplatform.json.JavaTimeConverter;
import java.time.ZonedDateTime;
public class ZonedDateTimeDslJsonConverter implements Configuration {
@Override
public void configure(DslJson json) {
json.registerReader(ZonedDateTime.class, JavaTimeConverter.ZONED_DATE_TIME_READER);
json.registerWriter(ZonedDateTime.class, JavaTimeConverter.ZONED_DATE_TIME_WRITER);
}
}