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

These are the .gitignore settings I've been using on the rest of the java/kotlin/gradle/.... projects I have across the internet. Offering this to you as well if you would find...

Following code works ok: ``` data class Test( val a: Int ) fun main(args: Array) { val test = Klaxon().parse(""" { "a":4 } """.trimIndent()) ?: return println(test) Klaxon().toJsonString(test) } ```...

I reported this before as #122, and the bug is still here. I am not sure why it was closed. Here is my JSON sample: ```json { "numberNames": [[0, "zero"],...

I discovered that Klaxon was including `kotlin-reflect` (a 11k methods dependency) on my source code. I just realise that I don't need this since I use the Low Level API....

I'm trying to parse class `Simple` below: ``` val simple = Klaxon() .fieldConverter(DateConverter.KlaxonDate::class, DateConverter()) .converter(SimpleConverter()) .parse(simpleJson) ``` Aside from other converting, `Simple` contains a `Date` property that needs to be...

Does Klaxon have an equivalent feature to Gson's `ExclusionStrategy ` for dynamically ignoring property fields?

In `Klaxon 2.1.14`, the following test fails with the following exception. ```kotlin @Test fun objectWithListOfMaps() { val mapper = Klaxon() data class Data(val data: List) val data = Data(listOf(mapOf("name" to...

I've tried to unit test below and the 3rd assert fails with an exception. Is this expected ? ``` class JsonTest { @Test fun jsonTest() { val json = "[816.0,376.0,6645.0,8658.0,7570.0,8512.0,7959.0,8325.0,7361.0,8454.0,9167.0,8115.0,8549.0,8073.0,9328.0,8864.0,8213.0,8744.0,9228.0,8454.0,7001.0,8249.0,8614.0,8308.0,8695.0,8123.0,8431.0,7841.0,6496.0,8981.0,6584.0,4884.0,1843.0,7908.0]"...

Related to https://github.com/cbeust/klaxon/issues/114, and is tested with 2.1.8. Given: ```Kotlin interface Foo{ val x: Int } data class FooImpl(override val x: Int): Foo data class BarImpl(val y: Int, val foo:...

Can you add character escaping to parseArray? (same same as in Issue https://github.com/cbeust/klaxon/issues/91 for `toJsonString`) Kotlin Klaxon Version 5.6 Notice `"lolipop""` in generated JSON (output of FreeMarker template): ``` [...