{"uid":"cap_CgB_-j2jYkWv4FP3wTiMC","slug":"json-fixer-linter-0dbf6a59","name":"JSON Fixer / Linter","description":"Fix broken JSON (trailing commas, single quotes, unquoted keys). Returns only valid JSON.","url":"https://charges-handling-limit-tunes.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_s9BBLCQX2aLDEHZyt3ych","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 syntactically valid JSON.","exampleAgentPrompt":"This JSON snippet has trailing commas and single-quoted strings — can you fix it so it's valid JSON I can parse?","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The AI returned this JSON but it has trailing commas and single quotes everywhere — can you clean it up so it's valid and I can parse it in my app?"},{"title":"Repair config file with unquoted keys","prompt":"My config file got corrupted and now has unquoted keys and trailing commas. Can you fix it and give me back valid JSON?"},{"title":"Sanitize user-pasted JSON input","prompt":"A user pasted some JSON into our form but it's invalid — it has single quotes instead of double quotes and some missing brackets. Can you repair it into proper valid JSON?"}],"resultDescription":"A response containing only the corrected, syntactically valid JSON, with all issues such as trailing commas, single-quoted strings, and unquoted keys resolved.","failureModes":["Input is too malformed to reliably repair and returns an error","Input is not JSON-like at all and cannot be fixed","Ambiguous structure where the intended correction is unclear","Network timeout if the Cloudflare tunnel is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you have JSON that is almost valid but has common syntax issues like trailing commas, single quotes instead of double quotes, or unquoted keys — especially JSON produced by LLMs, humans, or legacy systems. Prefer this over writing custom regex-based fixers or using a full JSON schema validator.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:01:40.290Z","isFirstParty":false,"canonicalSlug":"json-fixer-linter-0dbf6a59"}