MCPcopy Create free account
hub / github.com/openai/plugins / readJson

Function readJson

plugins/plugin-eval/src/lib/files.js:77–79  ·  view source on GitHub ↗
(targetPath)

Source from the content-addressed store, hash-verified

75}
76
77export async function readJson(targetPath) {
78 return JSON.parse(await readText(targetPath));
79}
80
81export async function writeText(targetPath, content) {
82 await fs.mkdir(path.dirname(targetPath), { recursive: true });

Callers 8

runCliFunction · 0.90
computeBudgetProfileFunction · 0.90
runMetricPacksFunction · 0.90
collectPluginSamplesFunction · 0.90
loadBenchmarkConfigFunction · 0.90
loadPluginManifestFunction · 0.90
evaluatePluginFunction · 0.90
parseCoverageJsonFunction · 0.90

Calls 1

readTextFunction · 0.85

Tested by

no test coverage detected