:mega: Serialization v `0.10.0-eap-1` (dev branch)...
# serialization
s
📣 Serialization v
0.10.0-eap-1
(dev branch) has just been released! This is a companion release to Kotlin
1.3.20-eap-52
Highlights: • Now Native plugin supports generics, @SerialInfo annotations and other features that were missing before • Now
SerialDescriptor.getElementDescriptor
is working and one can use it to deeply inspect descriptors tree • JSON now can omit default values • (breaking change) Context serializer is not enabled automatically anymore, use
@ContextualSerialization
on property. Full changelog: https://github.com/Kotlin/kotlinx.serialization/blob/dev/CHANGELOG.md
🔥 1
🎉 10
♥️ 1
j
regarding the "omit default values": when I have a simple class like this: @Serializable data class Test(val name: String? = null) then Json(encodeDefaults = false).stringify(Test.serializer(), testInstance) should print out "{}"? This doesn't seem to work for me
got it - name needs to have @Optional. The documentation of @Optional got me confused 🙂