klaxon icon indicating copy to clipboard operation
klaxon copied to clipboard

A JSON parser for Kotlin

Results 95 klaxon issues
Sort by recently updated
recently updated
newest added

I trying to decode some JSON with `com.beust:klaxon:5.5` and bail out If I get something invalid, however in `Klaxon().parse` I don't get a null but a inner exception: > Caused...

It will be nice to provide a simple way to use klaxon and retrofit : https://github.com/square/retrofit/tree/master/retrofit-converters Thanks

After writing an object with a Set of size of 0 or 1 to a json string, this json string cannot be parsed. An exception is thrown. This case works...

Due to jcenter closing from, old version like 5.0.1 will be not available in the nearest future. We are using klaxon in [KotlinDL project](https://github.com/JetBrains/KotlinDL). After migration to 5.4, we've got...

Paths are not being converted to or from. `Klaxon().toJsonString(Path.of("value"))` returns `{}`. Klaxon 5.4 on JDK11

In case of errors, most APIs will return an error JSON object describing details of what happened. How would you go about getting that? My attempt looks very clunky (slightly...

not a bug, but a tiny detail, better to keep the latest version, I am trying some examples but always failed, then I realized I am not using the latest...

Older reader version supported implicitly nextString() even json presentation was a number and had some trouble to cope with that when migrating to a newer klaxon version which had changed...

``` abstract class Animal class Dog : Animal(val favouritePark: String) class Cat : Animal(val favouriteWindow: String) data class PetStore(val cutestAnimal: Animal) class DogConverter: Converter { override fun canConvert(cls: Class): Boolean...

Hi, I'm a bit stuck with version 5.4. I have this function where I build a JSON string: ```kotlin fun buildDcFile(identifier: String, persons: List, items: List, history: List): String {...