{"ok":true,"tool":"JSON Formatter","operation":"format-json","description":"Format and validate a JSON string with proper indentation.","method":"POST","endpoint":"/api/json-formatter","webUrl":"https://toolhub-5eo.pages.dev/tools/json-formatter","parameters":{"type":"object","properties":{"json":{"type":"string","description":"The JSON string to format"},"indent":{"type":"integer","description":"Number of spaces for indentation (default 2)"}},"required":["json"]},"response":{"type":"object","properties":{"result":{"type":"string"},"valid":{"type":"boolean"},"error":{"type":"string"}}},"example":{"request":{"json":"{\"b\":2,\"a\":1}","indent":2},"response_shape":{"type":"object","properties":{"result":{"type":"string"},"valid":{"type":"boolean"},"error":{"type":"string"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/json-formatter. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  json (string, required) — The JSON string to format\n  indent (integer, optional) — Number of spaces for indentation (default 2)","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/json-formatter -H \"Content-Type: application/json\" -d '{\"json\":\"{\\\"b\\\":2,\\\"a\\\":1}\",\"indent\":2}'"}