public? I want to parse json stream and there are jvm-only solutions. Think it would be nice to have multiplatform streaming parser.
g
gildor
12/25/2018, 7:55 AM
Are you talking about kotlinx.serialization parser? It's just one file, you can get source code and modify
gildor
12/25/2018, 7:55 AM
But kotlinx.serialization is not streaming, as I understand. And not sure that parser with bindings may be streaming
gildor
12/25/2018, 8:01 AM
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
Alexander
12/25/2018, 8:10 AM
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
sandwwraith
12/25/2018, 8:36 AM
Well, it does not have any documentation or precisely designed API, because parser and its tokens are considered as internal implementation detail
g
gildor
12/25/2018, 9:02 AM
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