I see that protobuf for kotlinx.serialization is s...
# serialization
s
I see that protobuf for kotlinx.serialization is still considered “experimental”. In what regard is it experimental? Are certain features in JSON not supported in protobuf?
👀 1
r
I think it just means there's some possibility of breaking API change still
s
oh
I can live with that, thanks
b
Keep in mind that there's no support for protobuf in ktor client if you plan on using kotlin.js
s
Does there need to be support for it? Wouldn’t I just deserialize it?
b
How do you mean? Kotlinx.serialization is just a platform, each format needs to be implemented on both ends separately.
Same applies for json, it's a separate lib built on top of kotlinx-serialization-core. Also kotlinx.serialization protobuf currently is only published for jvm platform, so there's no way to use it on js
r
I don't know what it would take to use it with ktor, but kotlinx-serialization-protobuf is not JVM only. Can see published artifacts for different platforms here: https://search.maven.org/search?q=a:kotlinx-serialization-protobuf*%20v:1.1.0
b
You're right. My bad, looks like things have changed since I've last looked at it