uidsonic.fluid-json-coding.0.9.10.source-code.CodingImplementationsJava.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.dynamic
import com.github.fluidsonic.fluid.json.*
internal interface CodingImplementationsJava {
fun extendedCodecProviders(): List> =
emptyList()
}
internal val codingImplementationsJava: CodingImplementationsJava by lazy {
try {
return@lazy Class.forName("com.github.fluidsonic.fluid.json.dynamic.CodingImplementationsJava8").newInstance() as CodingImplementationsJava
}
catch (e: Exception) {
// non-existent or severely broken
}
CodingImplementationsJava7()
}