Are there any plans to make `kotlinx.serialization...
# serialization
a
Are there any plans to make
kotlinx.serialization.json.Parser
public? I want to parse json stream and there are jvm-only solutions. Think it would be nice to have multiplatform streaming parser.
g
Are you talking about kotlinx.serialization parser? It's just one file, you can get source code and modify
But kotlinx.serialization is not streaming, as I understand. And not sure that parser with bindings may be streaming
Maybe you could take a look at #klaxon. This is also JVM for now, but this is pure Kotlin library, maybe parsing and streaming part may be extracted to a separate Multiplatform library (without bindings, which requires kotlin-reflect and jot available on other platforms, only JVM)
a
Are you talking about kotlinx.serialization parser? It's just one file, you can get source code and modify
I'm considering copying
Parser
from
kotlinx.serialization.json
. But are there any reasons to not make it public?
s
Well, it does not have any documentation or precisely designed API, because parser and its tokens are considered as internal implementation detail
g
If you made something public, you now have some backward compatibility warranties, which is not good idea in case of experimental kotlinx.serialization and especially json api
2