{"uid":"cap_gKgqOzsLcgTK5RuYxZPnu","slug":"json-fixer-repair-db39551f","name":"JSON Fixer / Repair","description":"Fix broken JSON (trailing commas, single quotes, unquoted keys). Returns only valid JSON.","url":"https://linked-aimed-reproduced-changing.trycloudflare.com/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_rrh3IqkGrAtuGNu1_KIuy","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 broken or malformed JSON (trailing commas, single quotes, unquoted keys) and returns valid, parseable JSON.","exampleAgentPrompt":"Can you fix this broken JSON for me? It has trailing commas and single quotes instead of double quotes: {'name': 'Alice', 'age': 30,}","exampleUseCases":[{"title":"Fixing API response JSON errors","prompt":"This API response keeps throwing a parse error — can you repair it? Here's the broken JSON: {name: 'John', items: ['a', 'b',],}"},{"title":"Cleaning scraped config data","prompt":"I scraped a config file but the JSON is invalid — it has trailing commas and unquoted keys. Can you fix it so I can load it into my app? Here it is: {host: 'localhost', port: 8080,}"},{"title":"Repairing user-submitted JSON input","prompt":"A user submitted this JSON form data but it's malformed — single quotes and a trailing comma. Fix it so I can process it: {'email': 'user@example.com', 'subscribe': true,}"}],"resultDescription":"A valid, standards-compliant JSON string with all syntax errors corrected — trailing commas removed, single quotes converted to double quotes, and unquoted keys properly quoted. The response body contains only the repaired JSON.","failureModes":["Input is so malformed it cannot be unambiguously repaired — returns an error or best-effort guess","Input is not JSON at all (e.g. plain text, XML) — may return error","Extremely large payloads may time out or be rejected","Ambiguous structure (e.g. conflicting bracket types) may produce unexpected output"],"whenToPreferThis":"Choose this endpoint when you have a specific JSON syntax repair task — trailing commas, single quotes, or unquoted keys — and need a fast, cheap fix without spinning up a full JSON linting library. Ideal for lightweight agent pipelines that need to normalize JSON from external or user-generated sources before further processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:35:19.319Z","isFirstParty":false,"canonicalSlug":"json-fixer-repair-db39551f"}