{"uid":"cap_a7RY8gAXe87PoTjfxCtLo","slug":"machine-shop-repair-json-7ab07a42","name":"Machine Shop – Repair JSON","description":"Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.","url":"https://api.pay-forge.online/v1/repair-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","title":"Text","maxLength":50000}}},"responseSchema":{"type":"json","example":{"json":"{\"ok\": true}","value":{"ok":true},"changes":["parsed_python_literal_subset"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lYlIaDwu_Ka-9WqyMy5HZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and repairs malformed JSON text, returning the corrected JSON value along with a list of changes made.","exampleAgentPrompt":"This JSON string I got back from the LLM has single quotes and trailing commas — can you repair it and give me back valid JSON? Here it is: {'ok': true, 'items': [1, 2, 3,]}","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The AI returned this Python-style dict instead of proper JSON: {'name': 'Alice', 'age': 30,} — can you repair it so I can parse it in my application?"},{"title":"Repair JSON with syntax errors from scraping","prompt":"I scraped this JSON fragment from a page but it's broken — missing a closing bracket and uses single quotes. Can you fix it: {'results': [{'id': 1, 'label': 'foo']}"},{"title":"Validate and clean API response payload","prompt":"I got this JSON back from a third-party API and my parser is rejecting it. Can you repair it and tell me what was wrong: {\"status\": \"ok\", \"data\": {\"count\": 5,}}"}],"resultDescription":"Returns an object containing the repaired JSON as a string, the parsed JavaScript value, and an array of human-readable change descriptions explaining what was fixed (e.g. 'parsed_python_literal_subset', 'removed trailing commas').","failureModes":["Input text is so malformed it cannot be interpreted as any JSON-like structure — returns an error or empty result","Input exceeds 50,000 character limit — request rejected","Text is valid JSON already — still returns successfully with empty changes list"],"whenToPreferThis":"Choose this endpoint when you have a JSON string that fails to parse due to common issues like single quotes, trailing commas, Python dict literals, or minor syntax errors and you need a quick, cheap automated repair. It is not a web search or monitoring tool — it operates only on text you supply directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:35:31.183Z","isFirstParty":false,"canonicalSlug":"machine-shop-repair-json-7ab07a42"}