I am writing a wrapper for the REST API and using requests .
The .json() Response method transfers the **kwargs object to json.loads() , so I can easily use a custom JSON decoder and, i. e. transparently convert UNIX-era timestamps to datetime.datetime objects.
Can I use my own JSON encoder with Request object? It seems that I can only use the json parameter, but I cannot find how to use the custom JSON encoder with it.
python python-requests
Valery Ryaboshapko
source share