hello :wave: what is the suggested way to use wrap...
# serialization
d
hello 👋 what is the suggested way to use wrapper objects? i.e. given some
String
value I'd like to have it wrapped in
data class Wrapper(val value: String)
, in Jackson I can use
@JsonCreator/@JsonValue
annotations to achieve this. Based on the docs it looks like I need to build a custom serializer?
j
inline classes when they get support (there is a PR)
d
nice! looking forward to it
k
just a note (no experience), couldn't there be an interface for wrappers and serializer for interface?