Are there any plans to add a streaming reader/writer for JSON? Just like JsonReader/JsonWriter in Gson/Moshi?
I'm currently using Moshi (only JsonReader/JsonWriter classes) but am looking for a multiplatform solution for Kotlin/Native.
What problem you're trying to solve? Tokenize JSON? Why do you need such low-level approach? IMO, it is almost always easier to read JSON tree into memory (if it fits, of course) – that's why this class is internal
t
Thomas
03/26/2019, 9:19 AM
@sandwwraith I need low-level as JSON does not match my Kotlin classes. It handles different devices with different responses which are not completely, but nearly, identical. I can take this into account with low-level parsing. Loading the tree into mem will decrease performance.
Thomas
03/27/2019, 11:59 AM
I've looked into the (internal) JsonReader class a bit more and it is exactly the class I'm looking for. For now the only solution would be to copy it into my project. Would really like to see this class (and related classes) to become public.