Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of migrating from the build-in
jsonencoder library to the much fasterOrjsonlibrary, in a rather large project. One of the approaches I've been looking at is to monkey-patch therequestslibrary, so that I don't have to rewrite all the handlers.This is easier said than done unfortunately. So I'm now looking at httpx, but unfortunately I would still have to monkey-patch the
_mainand the_modelsmodules.It would be great if there way a way to specify custom
dumpsandloadshandlers for JSON.For example Pydantic supports this using the json_loads and json_dumps properties in its Config: https://docs.pydantic.dev/usage/exporting_models/#custom-json-deserialisation
Beta Was this translation helpful? Give feedback.
All reactions