klaxon
klaxon copied to clipboard
A JSON parser for Kotlin
I am trying to use Klaxon in a Gradle Task that generates some code for me, but when I try to access the parsed objects I get this error: ```class...
The JAR for Klaxon 5.6 contains a single class file, that was compiled to byte code with version 11, this flags the library as incompatible with Java 8 through byte...
Building JSON is a bit difficult with Klaxon, since the DSL for building them uses nesting to create complex objects. While that's fine for Java, it would be more idiomatic...
Looking at the example provided in the `README.md`: ``` val obj = json { repeat(3) { put("field$it", it * 2) } } ``` It throws a `java.util.EmptyStackException`. There seems to...
model= { var id: Int? = null lateinit var name: String lateinit var localPeerId: String var remotePeerId: String? = null @Json(serializeNull = false) var walletAddress: String? = null @Json(serializeNull =...
Hi, I'm having this error message `com.beust.klaxon.KlaxonException: Unable to instantiate Pdv` (class def below) while I try to serialize a string (JSON format). Here is a part of the stringified...
Looking in the code, it's not possible to specify a default class for a type adapter where the discriminator is null because we do this: ``` val discriminant = jsonObject[discriminantFieldName]...
We have a use case where we expect a `Double` but unfortunately, the data is not always consistently provided to us from the 3rd party, as it sometimes comes in...
Hello, A json fragment like the following: ``` { "aSymbol": "SYMBOL", "aType": 22 } ``` cannot be parsed into any of the following kotlin clases (Example2 or Example3): ``` private...
The Stream API documentation example shows the processing of a single object, but not a stream of objects.