
codecs.basic.ListJSONDecoderCodec.kt Maven / Gradle / Ivy
package com.github.fluidsonic.fluid.json
object ListJSONDecoderCodec : AbstractJSONDecoderCodec, JSONCodingContext>() {
override fun JSONDecoder.decode(valueType: JSONCodingType>): List<*> {
val elementType = valueType.arguments.single()
return readListByElement {
readValueOfTypeOrNull(elementType)
}
}
val nonRecursive = NonRecursiveJSONDecoderCodec.create>()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy