MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / jsonStringify

Function jsonStringify

src/utils/slowOperations.ts:180–194  ·  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

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

Callers 15

immediateFlushHistoryFunction · 0.85
checkPermissionsFunction · 0.85
renderToolUseMessageFunction · 0.85
renderToolResultMessageFunction · 0.85
renderToolUseMessageFunction · 0.85
isResultTruncatedFunction · 0.85
renderToolResultMessageFunction · 0.85
callFunction · 0.85
callInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected