MCPcopy
hub / github.com/MiniMax-AI/cli / formatJson

Function formatJson

src/output/json.ts:1–3  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

1export function formatJson(data: unknown): string {
2 return JSON.stringify(data, null, 2);
3}
4
5export function formatErrorJson(code: number, message: string, hint?: string): string {
6 return JSON.stringify({

Callers 1

formatOutputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected