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

Superclass members are not included in the JsonObject generated from an object with toJsonObject. Setup: ``` class A (val uuid: UUID) { var name: String = "Something" } class B...

Fix and test update for toJsonObject-method. toJsonObject previously did not include parent class members. The update ensures that members of the parent class are included in the JsonObject.

Does Klaxon plan to add support for parsing [JSON Lines](https://jsonlines.org/), an extension to the JSON format where each line is a valid JSON value?

Klaxon does not serialize unsigned value correctly. Code to reproduce: ```kt val str = json { obj( "intVal" to 123, // Int "uintVal" to 123U, // Unsigned Int "longVal" to...

Hello, Trying to deserialize a simple JSON map ```json { "1": { "name": "Pavel", "age": 38 }, "2": { "name": "Jessie", "age": 72 } } ``` without a need to...

In my data calss, I have a field quantity defined as below: `val quantity : Int` in the json it looks like: `"quantity" : 3` When I run the code...

Without loading the whole text into memory, is there an easy way of 1. URL: https://mysite.com/mybigflatdoc.json of many, many MyElement in an array 2. Open an input stream 3. Without...

Version: 5.5 If you try to write infinite float or double values in an object, the serializer ends up writing an unquoted "Infinity". A test that demonstrates this: ``` import...

I've got the following code: ```kotlin import com.beust.klaxon.Json import com.beust.klaxon.Klaxon data class UserResult( @Json(name = "\$id") val id: String, val status: String, val error: String? = null, val data: UserData?...