{"uid":"cap_smSHfaRHNPIP-yHv73ikq","slug":"json-fixer-linter-f32a9bf9","name":"JSON Fixer / Linter","description":"Fix broken JSON (trailing commas, single quotes, unquoted keys). Returns only valid JSON.","url":"https://released-mph-process-lib.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_lp-IyV3lXfya62mNPTIbj","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 around the keys — can you fix it so it's valid and parseable? Here it is: {'name': 'Alice', 'age': 30,}","exampleUseCases":[{"title":"Fixing API response before parsing","prompt":"I got this JSON back from a third-party API and it has trailing commas and unquoted keys — my parser is choking on it. Can you clean it up so I can actually use it?"},{"title":"Sanitizing user-pasted config data","prompt":"A user pasted this config into our form and it's using single quotes instead of double quotes and has an extra comma at the end. Fix it into valid JSON for me."},{"title":"Repairing LLM-generated JSON output","prompt":"The AI model I'm using keeps outputting JSON with trailing commas and sometimes leaves keys unquoted. Can you take this output and return a valid, clean JSON version of it?"}],"resultDescription":"A valid, standards-compliant JSON string with all syntax errors corrected — trailing commas removed, single quotes replaced with double quotes, unquoted keys properly quoted. Only the corrected JSON is returned, no additional explanation.","failureModes":["Input is so malformed it cannot be parsed or inferred — returns an error","Input is not JSON-like at all (plain text, XML, CSV) — may return error or unexpected output","Ambiguous structure where the repair is non-deterministic — may make incorrect assumptions","Empty or null input — likely returns an error or empty object"],"whenToPreferThis":"Choose this endpoint when you have JSON that is syntactically invalid due to common human or LLM authoring mistakes such as trailing commas, single-quoted strings, or unquoted object keys, and you need a clean, valid JSON document returned without additional explanation or processing. It is ideal for pipeline steps where downstream code requires strict JSON compliance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:33:34.161Z","isFirstParty":false,"canonicalSlug":"json-fixer-linter-f32a9bf9"}