net.codinux.jackson.InstantIso8601Deserializer.kt Maven / Gradle / Ivy
package net.codinux.jackson
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonDeserializer
import kotlinx.datetime.Instant
class InstantIso8601Deserializer : JsonDeserializer() {
override fun deserialize(parser: JsonParser, context: DeserializationContext): Instant =
Instant.parse(parser.text)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy