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

Function safeJsonParse

packages/integration-kit/src/json.ts:1–7  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

1export function safeJsonParse(json: string): unknown {
2 try {
3 return JSON.parse(json);
4 } catch (e) {
5 return null;
6 }
7}

Callers 2

safeParseBodyFunction · 0.90
parseBodyFunction · 0.90

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…