Fudge
06/26/2019, 5:14 PM@Serializable
class Wrapper(val test : Test)
enum class Test {
@SerialName("Bar")
Foo
}
println(json.stringify(Wrapper.serializer(), Wrapper(Test.Foo)))
This prints {test: "Foo"}, I would've expected {test: "Bar"} though, what am I doing wrong?gildor
06/27/2019, 2:35 AMFudge
06/27/2019, 7:56 AM