Skip to content
1 min read · 35 words

Variable: jsonFormatTool

ts
const jsonFormatTool: Tool<SpooledArtifact>;

Pretty-print or minify a JSON string.

Remarks

Validates the input as JSON, then re-serialises it with the requested indentation. indent is clamped to the range [0, 8]; 0 produces minified output.