Hi, I'm new to serialization(in JS it is just abou...
# getting-started
x
Hi, I'm new to serialization(in JS it is just about JSON.stringify and JSON.parse from my perspective) , could someone tell me why the code below doesn't print
name:"foo"
? though I didn't initialize the field in the constructor, but they got a default value.
Also #serialization is probably better channel to ask about it
x
thanks! wow serialization has its own channel, I've never thought about that😅
l
I believe there’s a setting for Json to encode default values, but I’d assume it’s off by default to reduce bandwidth requirements for Kotlin-Kotlin communication (for example, ktor client to ktor server).