This library is a kotlin-multiplatform streaming JSON-parser. It is based on OKIO for performance.
https://fab1an.github.io/kotlin-json-stream/
fun test() {
val json = JsonReader("""{"stringProp":"string", "intProp":0}""")
json.beginObject()
json.nextName() shouldEqual "stringProp"
json.nextString() shouldEqual "string"
json.nextName() shouldEqual "intProp"
json.nextInt() shouldEqual 0
json.endObject()
}
infix fun <T> T.shouldEqual(expected: T) {
assertEquals(expected, this)
}