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
Please use await response.json(loads=JSONDecoder(object_hook=mycallback).decode) loads is a callback that accepts a string and returns decoded python object.
Any implementation can be used, e.g. ujson or rapidjson. Not all alternatives have JSONDecoder class which accepts object_hook parameter.
Adding support for object_hook callback in
json
method of ClientResponse object should be considered (i.e.response.json(object_hook=mycallback)
).EDIT:
Basically what I am asking is that the
json
method should allow us to pass any optional arguments that the JSONDecoder accepts.The text was updated successfully, but these errors were encountered: