{"uid":"cap_f04Oz9e4IoOaAEoTuGul7","slug":"json-fixer-repair-2a73f1ca","name":"JSON Fixer / Repair","description":"Fix broken JSON (trailing commas, single quotes, unquoted keys). Returns only valid JSON.","url":"https://dev-5090-box.tailfb4c1f.ts.net/v1/json-fix?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"usage":{"type":"object"},"choices":{"type":"array"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t7Q1ny7GacGbaTNnw0brP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed JSON (trailing commas, single quotes, unquoted keys) and returns only valid, parseable JSON.","exampleAgentPrompt":"This JSON snippet has trailing commas and single quotes everywhere and won't parse — can you fix it and give me back valid JSON? Here it is: {'name': 'Alice', 'age': 30,}","exampleUseCases":[{"title":"Fix API response before processing","prompt":"The upstream API returned malformed JSON with trailing commas and unquoted keys — can you clean it up so I can parse it? Here's the broken payload: {name: 'Bob', scores: [10, 20, 30,]}"},{"title":"Repair hand-written config JSON","prompt":"I wrote this config file by hand and it's not valid JSON — it has single quotes and a trailing comma. Can you fix it and give me proper JSON back? Here it is: {'host': 'localhost', 'port': 8080,}"},{"title":"Sanitize user-submitted JSON input","prompt":"A user submitted this JSON through a form and it's invalid — there are unquoted keys and single-quoted strings. Can you repair it so I can safely save it to my database? Here's the raw input: {user: 'carlos', active: true, tags: ['admin', 'dev',]}"}],"resultDescription":"Returns only valid, parseable JSON with all syntax errors corrected — trailing commas removed, single quotes converted to double quotes, unquoted keys properly quoted. No explanation or wrapper, just the clean JSON.","failureModes":["Input is so malformed it cannot be unambiguously repaired — returns an error or best-effort partial fix","Input is not JSON at all (e.g. plain text, XML) — endpoint may return an error or unexpected output","Ambiguous structure where multiple valid repairs exist — result may not match original intent","Network timeout or service unavailability on the Tailscale host"],"whenToPreferThis":"Choose this endpoint when you have a JSON string with common syntax errors (trailing commas, single-quoted strings, unquoted keys) that you need repaired automatically without writing custom parsing logic. Ideal for pipelines that receive user-generated or hand-written JSON that is structurally close to valid but fails strict parsers. Not suitable for fully malformed or non-JSON input.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:48:25.813Z","isFirstParty":false,"canonicalSlug":"json-fixer-repair-2a73f1ca"}