Default function

django_orjson.default(obj)[source]

A function for use with orjson’s default parameter that extends orjson to support serializing these extra types:

This function is analogous to Django’s DjangoJSONEncoder, which extends the standard library json module support to the above types. You won’t typically need to use this function directly, as it is used internally by the other utilities in this package.