We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2303d9 commit 6707f19Copy full SHA for 6707f19
core/commonMain/src/kotlinx/serialization/ContextualSerializer.kt
@@ -29,7 +29,7 @@ import kotlin.reflect.*
29
* @Serializable
30
* class ClassWithDate(val data: String, @Contextual val timestamp: Date)
31
*
32
- * val moduleForDate = serializersModule(MyISO8601DateSerializer)
+ * val moduleForDate = serializersModuleOf(MyISO8601DateSerializer)
33
* val json = Json { serializersModule = moduleForDate }
34
* json.encodeToString(ClassWithDate("foo", Date())
35
* ```
0 commit comments