all

Returns the module for serializing all types.


Calling from Kotlin

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)
assertEquals(expected = "0", actual = encoded)
val decoded: Zero = format.decodeFromString(encoded)
assertEquals(expected = zero, actual = decoded)