{"uid":"cap_RwEJH708pXkeQluXBX95Z","slug":"json-fixer-linter-faade51f","name":"JSON Fixer / Linter","description":"Fix broken JSON (trailing commas, single quotes, unquoted keys). Returns only valid JSON.","url":"https://over-arabia-specifically-luxury.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_O8FGPIoA7B6nCfEpNyxqY","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-quoted strings, unquoted keys) and returns valid, parseable JSON.","exampleAgentPrompt":"This JSON won't parse — can you fix it for me? It has trailing commas and some keys aren't quoted: {name: 'Alice', age: 30, hobbies: ['reading', 'coding',]}","exampleUseCases":[{"title":"Fix config file JSON errors","prompt":"My app config file has a bunch of JSON errors — trailing commas after the last items and some keys aren't quoted. Can you fix it so it parses correctly? Here it is: {host: 'localhost', port: 8080, debug: true,}"},{"title":"Repair API response before processing","prompt":"I scraped an API response but the JSON is malformed — it uses single quotes instead of double quotes and has trailing commas. Can you clean it up and give me valid JSON? Here's what I got: {'user': 'bob', 'score': 42,}"},{"title":"Clean up hand-written JSON data","prompt":"I wrote this JSON by hand and it keeps failing validation. It has unquoted keys and trailing commas. Can you repair it and return valid JSON? Here: {firstName: 'Jane', lastName: 'Doe', tags: ['admin', 'editor',],}"}],"resultDescription":"Returns only the corrected, valid JSON with all syntax errors resolved — trailing commas removed, single quotes converted to double quotes, and unquoted keys properly quoted. No explanatory text, just the fixed JSON.","failureModes":["Input is so corrupted it cannot be parsed or inferred — returns an error or empty response","Non-JSON input (e.g. plain text, XML) may produce unexpected output","Very large JSON payloads may time out or be truncated","Cloudflare tunnel may be unavailable, returning 502 or connection errors","Payment of 0.005 USDC via x402 required; missing payment returns 402"],"whenToPreferThis":"Choose this endpoint when you have syntactically broken JSON that fails standard parsers due to trailing commas, single-quoted strings, or unquoted keys, and you need a corrected, valid JSON string back immediately without any explanation or commentary. Best for developer tooling pipelines, CI checks, or agent workflows that need to normalize JSON on the fly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:34:41.464Z","isFirstParty":false,"canonicalSlug":"json-fixer-linter-faade51f"}