Moshi v1.1.0 Release Notes

Release Date: 2016-01-18 // over 8 years ago
  • 2016-01-19

    • New: Support [RFC 7159][rfc_7159], the latest JSON specification. This removes the constraint that the root value must be an array or an object. It may now take any value: array, object, string, number, boolean, or null. Previously this was only permitted if the adapter was configured to be lenient.
    • New: Enum constants may be annotated with @Json to customize their encoded value.
    • New: Create new builder from Moshi instance with Moshi.newBuilder().
    • New: Types.getRawType() and Types.collectionElementType() APIs to assist in defining generic type adapter factories.