uidsonic.fluid-json-coding.0.9.16.source-code.JSONCodec.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-json-coding Show documentation
Show all versions of fluid-json-coding Show documentation
A JSON library written in pure Kotlin (coding extension)
package com.github.fluidsonic.fluid.json
import kotlin.reflect.KClass
interface JSONCodec
: JSONDecoderCodec, JSONEncoderCodec {
override val decodableType: JSONCodingType
override val encodableClass: KClass
get() = decodableType.rawClass
override fun decoderCodecForType(decodableType: JSONCodingType) =
super.decoderCodecForType(decodableType)
override fun encoderCodecForClass(encodableClass: KClass) =
super.encoderCodecForClass(encodableClass)
companion object
}