MCPcopy Create free account
hub / github.com/cli/cli / json

Function json

evals/src/suites/events/grading/observations.ts:11–13  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

9}
10
11function json(text: string): unknown {
12 try { return JSON.parse(text); } catch { return undefined; }
13}
14
15export function jsonOutput(call: GhCall): Array<{ at: number; value: unknown }> {
16 const chunks = call.output.filter(chunk => chunk.stream === "stdout");

Callers 1

jsonOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected