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

Function safeJsonParse

packages/trigger-sdk/src/apiClient.ts:1063–1069  ·  view source on GitHub ↗
(rawBody: string)

Source from the content-addressed store, hash-verified

1061}
1062
1063function safeJsonParse(rawBody: string) {
1064 try {
1065 return JSON.parse(rawBody);
1066 } catch (error) {
1067 return;
1068 }
1069}
1070
1071async function safeResponseText(response: Response) {
1072 try {

Callers 1

zodfetchWithVersionsFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…