MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / readJson

Function readJson

packages/node-runtime/src/ai/__tests__/llm-config-store.test.ts:9–11  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

7 return {
8 data,
9 readJson<T>(key: string): T | null {
10 return (data.get(key) as T) ?? null
11 },
12 writeJson<T>(key: string, value: T): void {
13 data.set(key, JSON.parse(JSON.stringify(value)))
14 },

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected