You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
orjson.dumps() does not serialize dataclasses.dataclass attributes
that begin with a leading underscore, e.g., _attr. This is because of the
Python idiom that a leading underscores marks an attribute as "private."
orjson.dumps() does not serialize dataclasses.dataclass attributes that
are InitVar or ClassVar whether using __slots__ or not.
orjson.dumps() raises an exception if the object to be serialized
is not given as a positional argument. orjson.dumps({}) is intended and ok
while orjson.dumps(obj={}) is an error. This makes it consistent with the
documentation, help() annotation, and type annotation.
Fix orphan reference in exception creation that leaks memory until the
garbage collector runs.
Changed
Improve serialization performance marginally by using the fastcall/vectorcall
calling convention on python3.7 and above.
orjson.dumps() serializes subclasses of str, int, list, and dict.
Changed
orjson.dumps() serializes dataclasses.dataclass and uuid.UUID
instances by default. The options OPT_SERIALIZE_DATACLASS and OPT_SERIALIZE_UUID can still be specified but have no effect.