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
I have a use case that requires the serialization of uuid.UUIDs and Python's json cannot serialize them.
While I can str(uuid) before-hand, I think adding support for multiple json serializers is a plus (e.g. orjson is much faster and supports more types).
Would this be a feature you're interested in?
The text was updated successfully, but these errors were encountered:
I think it's a good idea to make it available. Both a better default scenario as well as the ability to specify serializers. Happy to review a PR, if this something you'd like to work on.
Sorry for the delayed response. I'd be interested in working on this yes! Though I think I might need a bit of guidance.
I've searched through the code and seems to me that most of the PR might consist of simply adding a parameter to the aiohttp calls and any of it's dependents.
However, for the exceptions.py and request.py files, it doesn't seem to be that simple; as they don't really have an API that can be changed (IMO).
and getting TypeError: Object of type datetime is not JSON serializable. Not sure if its something that could be hotpatched or requires a custom JSON serializer?
Hello!
I have a use case that requires the serialization of
uuid.UUID
s and Python'sjson
cannot serialize them.While I can
str(uuid)
before-hand, I think adding support for multiplejson
serializers is a plus (e.g.orjson
is much faster and supports more types).Would this be a feature you're interested in?
The text was updated successfully, but these errors were encountered: