all
Returns the module for serializing all types.
Here's an example of calling this property from Kotlin code:
val format = Json { serializersModule = KotoolsTypesSerializers.all }
val zero = Zero()
val encoded: String = format.encodeToString(zero)
println(encoded) // 0
val decoded: Zero = format.decodeFromString(encoded)
println(zero == decoded) // true
Content copied to clipboard