MCPcopy
hub / github.com/infinitered/reactotron / compactJson

Function compactJson

lib/reactotron-mcp/src/serialization.ts:8–10  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

6
7/** Serialize data as compact (no indentation) JSON. */
8export function compactJson(data: unknown): string {
9 return JSON.stringify(data)
10}
11
12/**
13 * Truncate a string to a character limit, appending a guidance message

Callers 5

safeSerializeFunction · 0.85
logPreviewFunction · 0.85
genericPreviewFunction · 0.85
truncateValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected