- Add
forbid_unknown_fields
configuration option toStruct
types (#210) - BREAKING: Encode all
enum
types by value, rather than name (#211) - Fix a bug in the JSON encoder when base64 encoding binary objects (#217)
- Add support for encoding/decoding
dataclasses
(#218) - Add support for encoding/decoding
datetime.date
objects (#221) - Add support for encoding/decoding
uuid.UUID
objects (#222) - BREAKING: support encoding/decoding
datetime.datetime
values without timezones by default (#224). - Add a
tz
constraint to require aware or naive datetime/time objects when decoding (#224). - Add support for encoding/decoding
datetime.time
objects (#225) - Add a
msgspec.json.format
utility for efficiently pretty-printing already encoded JSON documents (#226). - Support decoding JSON from strings instead of just bytes-like objects (#229)