MCPcopy
hub / github.com/triggerdotdev/trigger.dev / json

Method json

packages/core-apps/src/http.ts:30–36  ·  view source on GitHub ↗
(value: any, pretty?: boolean)

Source from the content-addressed store, hash-verified

28 }
29
30 json(value: any, pretty?: boolean) {
31 return this.text(
32 JSON.stringify(value, undefined, pretty ? 2 : undefined),
33 200,
34 "application/json"
35 );
36 }
37}
38
39function getRandomInteger(min: number, max: number) {

Callers 15

#createHttpServerMethod · 0.95
zodfetchFunction · 0.80
requestFilterMatchesFunction · 0.80
responseFilterMatchesFunction · 0.80
_doZodFetchFunction · 0.80
getLatestPackageVersionFunction · 0.80
createTunnelMethod · 0.80
whoamiMethod · 0.80
registerEndpointMethod · 0.80
getEndpointIndexMethod · 0.80
handlerFunction · 0.80

Calls 1

textMethod · 0.95

Tested by

no test coverage detected