dsl_json.java.time.LocalDateTimeDslJsonConverter 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)
The newest version!
package dsl_json.java.time;
import com.dslplatform.json.Configuration;
import com.dslplatform.json.DslJson;
import com.dslplatform.json.JavaTimeConverter;
import java.time.LocalDateTime;
public class LocalDateTimeDslJsonConverter implements Configuration {
@Override
public void configure(DslJson json) {
json.registerReader(LocalDateTime.class, JavaTimeConverter.LOCAL_DATE_TIME_READER);
json.registerWriter(LocalDateTime.class, JavaTimeConverter.LOCAL_DATE_TIME_WRITER);
}
}