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")))
Hi @wuseal ,very thanks for your awesome work.
Could you add support for the project kotlinx.serialization ?
@Serializable@Optionalfor optional property, but require default values@SerialNamefor override property name with custom namee.g.