MCPcopy
hub / github.com/claude-code-best/claude-code / jsonStringify

Function jsonStringify

src/utils/slowOperations.ts:183–197  ·  view source on GitHub ↗
(
  value: unknown,
  replacer?:
    | ((this: unknown, key: string, value: unknown) => unknown)
    | (number | string)[]
    | null,
  space?: string | number,
)

Source from the content-addressed store, hash-verified

181 space?: string | number,
182): string
183export function jsonStringify(
184 value: unknown,
185 replacer?:
186 | ((this: unknown, key: string, value: unknown) => unknown)
187 | (number | string)[]
188 | null,
189 space?: string | number,
190): string {
191 using _ = slowLogging`JSON.stringify(${value})`
192 return JSON.stringify(
193 value,
194 replacer as Parameters<typeof JSON.stringify>[1],
195 space,
196 )
197}
198
199/**
200 * Wrapped JSON.parse with slow operation logging.

Calls

no outgoing calls

Tested by

no test coverage detected