/json4s-java-time

java.time support for json4s

Primary LanguageScalaMIT LicenseMIT

Coverage Status Download Build Status

json4s-java-time

This library adds minimal java.time support for [json4s] 1 by way of its support for [custom serialization] 2. Assuming familiarity with json4s, simply add the serializers provided via JavaTimeSerializers.defaults to the implicit Formats in use enable support for handling [ISO-8061] 3 strings.

import com.meetup.json4s.JavaTimeSerializers
import org.json4s.DefaultFormats

implicit val formats = DefaultFormats ++ JavaTimeSerializers.defaults