Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/triggerdotdev/trigger.dev
/ safeJSONParse
Function
safeJSONParse
packages/cli/src/commands/sendEvent.ts:66–72 ·
view source on GitHub ↗
(payload: string)
Source
from the content-addressed store, hash-verified
64
}
65
66
function
safeJSONParse(payload: string): any {
67
try {
68
return
JSON.parse(payload);
69
} catch (e) {
70
return
payload;
71
}
72
}
Callers
1
sendEventCommand
Function · 0.85
Calls
1
parse
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…