-
Notifications
You must be signed in to change notification settings - Fork 180
Closed
Description
Hi @wuseal ,very thanks for your awesome work.
Could you add support for the project kotlinx.serialization ?
- Class should annotated with
@Serializable
@Optional
for optional property, but require default values@SerialName
for override property name with custom name
e.g.
@Serializable
class Data(val a: Int = 0,
@Optional val b: Int = 42,
@SerialName("c") val custom: String)
assertEquals("{a: 1, b: 42, c: test}", JSON.unquoted.stringify(Data(custom="test")))
wusealwuseal