Amaan
02/23/2022, 6:29 PM@Serializable
open class Box<T>(val contents: T)
@Serializable
class StringBox(
private val data: String
) : Box<String>(data)
fun main() {
println(
Json.encodeToString(
StringBox("Kotlin")
)
)
}
and I still get a java.lang.IndexOutOfBoundsException
. Is this a bug in the serialization compiler code?