Find answers from the community

Updated 6 months ago

Json

At a glance

The community member is asking if there is a method to convert a Response object to a JSON object, as they are having trouble using json.dumps. A comment suggests that since the response objects are dataclasses, the community member can try using response.json to achieve the desired result. However, there is no explicitly marked answer in the provided information.

Is there a method for returning a Response as a JSON Object? Basically convert the Response object to JSON. Trying to with json.dumps but it’s not serializable. (Just want to check for an “in house” method)
L
1 comment
The response objects are dataclasses, I think that means you can just do response.json ? 🤔
Add a reply
Sign up and join the conversation on Discord