This repository was archived by the owner on Jun 20, 2025. It is now read-only.
0.3.0
Pre-release
Pre-release
Release Notes
What's in 0.3.0
Features
- With a new
MapKeyDeserializer, maps with keys that are not strings (e.g.,std.AutoHashMap(i32, i32)) can now be deserialized into. (1f533ef, 086dcf4) deserializeAnyhas been implemented byDeserializer, allowing users to deserialize from multiple possible data types. (cec8be4)
Improvements
- The custom integer formatting and math code we had has largely been replaced by
stdequivalents, which we were able to merge in. (03285fe, ca625fe) StructAccessproperly unescapes keys now. (487163a)StructAccessnow overridesisKeyAllocated, allowing it to specify to the visitor, on a key-by-key basis, whether or not a deserialized key was allocated. (487163a)- Elements and entries are no longer serialized once they're specified length is reached. (c9e7a5b).
Bug Fixes
- The
std.ArrayListused intoSliceWithandtoPrettySliceWithare now properly freed. Before, they were only freed when an error arose. 7e8314b - Ending tokens are now properly parsed. Before, they didn't account for characters such as whitespace. (6f25a28)
- Thank you to @LordMZTE for bringing this issue up!
deserializeIgnorednow callsvisitVoidinstead of just returning avoidvalue. (c9e7a5b).
Other Changes
There are other changes in the Getty JSON 0.3.0 release. You can see the full changelog here.