Given a class like `data class Foo(val foo: String...
# serialization
k
Given a class like
data class Foo(val foo: String)
is there an easy way to serialize it into just a string, not an object like
{"foo": "SomeString"}
? without writing a custom serializer...
j
inline classes
or value classes in Kotlin 1.5.0
well, I haven't tried the second one personally

https://youtu.be/LpqvtgibbsQ

min 6:20 approx
k
forgot to note that I'm already using inline classes, but there a few cases when it doesn't work - with lateinit properties...
j
but toString shouldn't show that properties, no?