v1.2.2
版本发布时间: 2021-07-09 02:48:03
Kotlin/kotlinx.serialization最新发布版本:v1.7.2(2024-08-29 01:45:05)
This release contains various bugfixes, some useful features and important performance improvements. It also uses Kotlin 1.5.20 as default.
Features
- Support for
@JsonNames
andcoerceInputValues
inJson.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
JsonStringBuilder
slow-path to avoid excessive array-copies for large strings with escape symbols (#1491) - Optimize integer encoding length in CBOR (#1570) (thanks to davertay)
- Throw
JsonDecodingException
instead ofClassCastException
during 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
DescriptorSchemaCache
in Json thread-local on Native (#1484)