package io.github.crabzilla.kotlinx.json

import kotlinx.serialization.modules.SerializersModule
import java.math.BigDecimal
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.*

@kotlinx.serialization.ExperimentalSerializationApi
val javaModule = SerializersModule {
  contextual(UUID::class, UUIDSerializer)
  contextual(LocalDateTime::class, LocalDateTimeSerializer)
  contextual(LocalDate::class, LocalDateSerializer)
  contextual(BigDecimal::class, BigDecimalAsStringSerializer)
}
