1.2.2
This release contains various bugfixes, some useful features and important performance improvements.
It also uses Kotlin 1.5.20 as default.
Features
- Support for
@JsonNamesandcoerceInputValuesinJson.decodeFromDynamic(#1479) - Add factory function to wrap a serial descriptor with a custom name for custom delegating serializers (#1547) (thanks to Fadenfire)
- Allow contextually serialized types to be used as map keys in Json (#1552) (thanks to pdvrieze)
Bugfixes and performance improvements
- Update size in
JsonStringBuilderslow-path to avoid excessive array-copies for large strings with escape symbols (#1491) - Optimize integer encoding length in CBOR (#1570) (thanks to davertay)
- Throw
JsonDecodingExceptioninstead ofClassCastExceptionduring unexpected null inTreeJsonDecoder(#1550) - Prohibit 'null' strings in lenient mode in order to get rid of 'null' and "null" ambiguity (#1549)
- Avoid usage of reflective-like
serialDescriptor<KType>in production sources (#1540) - Added correct error message when deserializing missing enum member for Properties format (#1539)
- Make
DescriptorSchemaCachein Json thread-local on Native (#1484)