What is the status for `encodeDefaults` and JSON s...
# serialization
t
What is the status for
encodeDefaults
and JSON serializer? This case doesn't work for me:
Copy code
@Serializable data class N(val s: String, val l: List<Int>? = null)
        assertEquals("""{"s":"s"}""", JSON(encodeDefaults = false).stringify(N.serializer(), N("s")))
@sandwwraith is there an issue to watch for?
s
Yes. It is working in dev branch with dependency on dev compiler only for now
t
Thanks! Unfortunately custom serializer doesn't work on native, too: https://kotlinlang.slack.com/archives/C3SGXARS6/p1543526155656700