Whats the simplest or quickest way to declare a se...
# serialization
e
Whats the simplest or quickest way to declare a serializer that wraps a string in a particular class? I have:
Copy code
data class Reference(val id: String)

// appears in the json as just String
...
"reference" : "the-reference-id"
...
g
Sounds similar to this issue https://github.com/Kotlin/kotlinx.serialization/issues/344 Maybe you can get some answers in the thread