/jsonParser

Example of simple Kotlin JSON parser using better-parse (https://github.com/h0tk3y/better-parse)

Primary LanguageKotlinDo What The F*ck You Want To Public LicenseWTFPL

json-parser – a simple example JSON parser in Kotlin with better-parse

The parsing code is in SimpleJsonGrammar object, there are also a few tests showing it works.

It does not currently handle unicode escape sequences (like "\uFDFD" for string).

Tests can be run with ./gradlew test.