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)