MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / safeJsonFromResponse

Function safeJsonFromResponse

apps/webapp/app/utils/json.ts:28–31  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

26}
27
28export async function safeJsonFromResponse(response: Response) {
29 const json = await response.text();
30 return safeJsonParse(json);
31}
32
33export async function safeBodyFromResponse<T>(
34 response: Response,

Callers 1

callMethod · 0.90

Calls 2

safeJsonParseFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…