json5k icon indicating copy to clipboard operation
json5k copied to clipboard

JSON5 library for Kotlin

Results 8 json5k issues
Sort by recently updated
recently updated
newest added

Thank you for your open source work But I encountered some problems ```kotlin val name = "kotlinx.serialization.json.JsonElementSerializer" val JsonElementSerializer = Class.forName(name).kotlin.objectInstance as KSerializer Json5.decodeFromString(JsonElementSerializer, "{a:1}") ``` but I get error...

I would like to be able to encode or decode JSON5 without using `@Serializable` classes. ### Context This is useful for tweaking JSON5 elements during serialization (for example, in a...

enhancement

Hi, thank you for the lib. This is a request to support values like `0` instead of requiring `0.0` (currently, there is an exception: `io.github.xn32.json5k.UnexpectedValueError: floating-point number expected at position`).

Hi, thank you for the lib. This is a request to support not only reading trailing commas, but also preserving them.

Currently json5k does not support [Kotlin/JS](https://kotlinlang.org/docs/js-overview.html#kotlin-js-frameworks), would it be possible to add it as a target? ```kotlin // build.gradle.kts plugins { kotlin("multiplatform") } kotlin { targets { js(IR) { browser()...

Is there a way to ignore unknown keys in json5k (kotlinx equivalent of Json { ignoreUnknownKeys = true }?

enhancement

Im getting this error: Caused by: java.lang.UnsupportedOperationException: map key must be a non-nullable string full error: https://pastebin.com/AAD74gky my data class looks like this @Serializable data class Config( val map: MutableMap,...

enhancement

Allow us to decide how many time a comment will be written. In relation with @SerialComment Example: json5 example : https://pastebin.com/dfsT84BM Idea: Add an annotation called @SerialSettings that allow us...