This project is forked from JKid.
JKid is a simple JSON serialization/deserialization library for Kotlin data classes. To serialize or deserialize an object use the 'serialize' and 'deserialize' functions. Also, it accompanies the Chapter 10, "Introspecting Kotlin Code" of the Kotlin in Action book.
-
Support the annotation
DateFormat
- The Annotation
DateFormat
allows to annotate the date property with@DateFormat("dd-MM-yyyy")
specifying the date format as an argument.
- The Annotation
-
Support maps as property values
- Make JKid support serialization and deserialization of maps as property values. For now it supports only objects and collections.
The example is in the file
test/kotlin/exercise/Map.kt
. Remove@Ignore
from the testMapTest
and make it pass. To support deserialization of maps, create a classMapSeed
similar toObjectSeed
and collection seeds. The functioncreateSeedForType
should now return an instance ofMapSeed
if a map is expected. The example solution can be found in the branchsolution-map
.
- Make JKid support serialization and deserialization of maps as property values. For now it supports only objects and collections.
The example is in the file
- This project is forked from JKid and will provide additional features.