Kotson v2.5.0 Release Notes

Release Date: 2017-01-17 // about 7 years ago
    • typeToken removes generic type parameter wildcards. This means that typeToken<List<Something>> will now return List<Something> instead of List<? extends Something>.
    • Added the byNullable* functions to delegate to nullable values inside a JsonObject or JsonArray (thanks to @eygraber Eliezer Graber).
    • Added the possibility to define a default value to the delegate by* methods (thanks to @eygraber Eliezer Graber).
    • Added the addProperty and addPropertyIfNotNull methods to JsonObject (thanks to @ColinHebert Colin Hebert).
    • Added the ability to add a JsonSerializer and JsonDeserializer with registerTypeAdapter (thanks to @ColinHebert Colin Hebert).
    • Gson 2.8.0, see changelog.
    • Kotlin 1.0.6
    • Gradle 3.3

Previous changes from v2.4.0

    • typeToken is more permissive with generic parameters. It tries to infer generic wildcards.
    • Kotlin 1.0.3
    • Gradle 2.14.1.
    • Spek 1.0.25.