Jankson icon indicating copy to clipboard operation
Jankson copied to clipboard

JSON5 / HJSON parser and preprocessor which preserves ordering and comments

Results 13 Jankson issues
Sort by recently updated
recently updated
newest added

While serializing a class consisting only of nested POJOs, primitives, lists, maps and enums, this error occurs. I wrote out the entire stucture of this file below, as one last...

bug

[Kotlin Documentation](https://kotlinlang.org/docs/basic-types.html#string-literals): > To remove leading whitespace from raw strings, use the `trimMargin()` function: > ```Kotlin > val text = """ > |Tell me and I forget. > |Teach me...

Would it be possible to support java 14 record classes without needing to manually create type adapters? Currently (as of Jankson 1.2.0), when trying to deserialize a record class via...

enhancement

Currently, fetching them (for my WIP record adapter) needs me to reflect the backing field of the record component, as the annotation goes onto the field. Having `ElementType.RECORD_COMPONENT` as a...

enhancement

Currently, uninitialized variables are being serialized as null: ```json { "id": "minecraft:cobblestone", "weight": 60, "dimensions": null } ``` But it'd be great if I skip it and generate a much...

enhancement

Should probably be a builder option, but it makes the file look prettier.

For example, round-tripping `List` results in getting a `List` back.

bug

Test reading an empty array element, the test passes fine.