@@ -305,3 +305,67 @@ def get_json_from_response(response: httpx.Response) -> dict[str, Any]:
305305 return response .json ()
306306 except JSONDecodeError :
307307 return {"raw" : response .text }
308+
309+
310+ def get_json_from_response2 (response : httpx .Response ) -> dict [str , Any ]:
311+ """Extract JSON data from an HTTP response."""
312+ try :
313+ return response .json ()
314+ except JSONDecodeError :
315+ return {"raw" : response .text }
316+
317+
318+ def get_json_from_response3 (response : httpx .Response ) -> dict [str , Any ]:
319+ """Extract JSON data from an HTTP response."""
320+ try :
321+ return response .json ()
322+ except JSONDecodeError :
323+ return {"raw" : response .text }
324+
325+
326+ def get_json_from_response4 (response : httpx .Response ) -> dict [str , Any ]:
327+ """Extract JSON data from an HTTP response."""
328+ try :
329+ return response .json ()
330+ except JSONDecodeError :
331+ return {"raw" : response .text }
332+
333+
334+ def get_json_from_response5 (response : httpx .Response ) -> dict [str , Any ]:
335+ """Extract JSON data from an HTTP response."""
336+ try :
337+ return response .json ()
338+ except JSONDecodeError :
339+ return {"raw" : response .text }
340+
341+
342+ def get_json_from_response6 (response : httpx .Response ) -> dict [str , Any ]:
343+ """Extract JSON data from an HTTP response."""
344+ try :
345+ return response .json ()
346+ except JSONDecodeError :
347+ return {"raw" : response .text }
348+
349+
350+ def get_json_from_response7 (response : httpx .Response ) -> dict [str , Any ]:
351+ """Extract JSON data from an HTTP response."""
352+ try :
353+ return response .json ()
354+ except JSONDecodeError :
355+ return {"raw" : response .text }
356+
357+
358+ def get_json_from_response8 (response : httpx .Response ) -> dict [str , Any ]:
359+ """Extract JSON data from an HTTP response."""
360+ try :
361+ return response .json ()
362+ except JSONDecodeError :
363+ return {"raw" : response .text }
364+
365+
366+ def get_json_from_response9 (response : httpx .Response ) -> dict [str , Any ]:
367+ """Extract JSON data from an HTTP response."""
368+ try :
369+ return response .json ()
370+ except JSONDecodeError :
371+ return {"raw" : response .text }
0 commit comments