{"name":"AgentJSON Fix","version":"0.2.1","description":"Repair broken or LLM-ish JSON into valid JSON with optional JSON Schema validation. Use when an agent receives malformed JSON (single quotes, trailing commas, fenced prose, truncated braces) and needs deterministic repair without an LLM.","pricing":{"scheme":"exact","amount":"0.005","asset":"USDC","network":"eip155:8453"},"resource":{"url":"https://agentjson-fix-km.fly.dev/v0/json/fix","description":"Repair broken or LLM-ish JSON into valid JSON with optional JSON Schema validation. Use when an agent receives malformed JSON (single quotes, trailing commas, fenced prose, truncated braces) and needs deterministic repair without an LLM.","mimeType":"application/json","serviceName":"AgentJSON Fix","tags":["json","repair","agents","validation"]},"extensions":{"bazaar":{"info":{"input":{"type":"http","bodyType":"json","body":{"raw":"{'name': 'agent', 'ok': true,}","strict":false},"method":"POST"},"output":{"type":"json","example":{"ok":true,"json":{"name":"agent","ok":true},"repairs":[{"type":"single_quotes","detail":"converted 2"},{"type":"trailing_commas","detail":"removed 1"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"raw":{"type":"string","description":"Malformed or LLM-ish JSON text to repair (required)"},"schema":{"type":"object","description":"Optional JSON Schema object to validate the repaired value"},"strict":{"type":"boolean","description":"If true, schema validation failures return ok:false; default false"}},"required":["raw"],"additionalProperties":false}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"json":{},"repairs":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"detail":{"type":"string"}}}},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}}}}}}},"required":["type"]}},"required":["input"]}}},"endpoints":[{"method":"POST","path":"/v0/json/fix","inputSchema":{"type":"object","required":["raw"],"properties":{"raw":{"type":"string","description":"Malformed JSON text"},"schema":{"type":"object","description":"Optional JSON Schema to validate after repair"},"strict":{"type":"boolean","description":"If true, schema failures return ok:false; default false"}}},"exampleRequest":{"raw":"{'name': 'agent', 'ok': true,}","strict":false},"exampleResponse":{"ok":true,"json":{"name":"agent","ok":true},"repairs":[{"type":"single_quotes","detail":"converted 2"},{"type":"trailing_commas","detail":"removed 1"}]}}],"freeEndpoints":[{"method":"GET","path":"/"},{"method":"GET","path":"/health"},{"method":"GET","path":"/openapi.json"},{"method":"GET","path":"/llms.txt"},{"method":"GET","path":"/.well-known/x402"}],"notes":{"bazaar":"Discoverability requires extensions.bazaar on the unpaid 402 (PAYMENT-REQUIRED). Coinbase Bazaar / Agentic.Market indexing additionally needs verify+settle through the CDP facilitator with CDP_API_KEY_ID/SECRET, plus one successful paid settlement that echoes paymentPayload.resource.","facilitators":{"publicTestnet":"https://x402.org/facilitator","cdp":"https://api.cdp.coinbase.com/platform/v2/x402"}},"resources":["https://agentjson-fix-km.fly.dev/v0/json/fix"],"discovery":{"openapi":"https://agentjson-fix-km.fly.dev/openapi.json","llms":"https://agentjson-fix-km.fly.dev/llms.txt","docs":"https://agentjson-fix-km.fly.dev/"}}