{"uid":"cap_LMvGFSEgwuDdUM93GR_5Y","slug":"agentshelf-syntexa-ch-json-repair-4005a2be","name":"agentshelf.syntexa.ch JSON Repair","description":"Call when an agent needs broken JSON repaired deterministically, with the list of transforms applied. No LLM. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/json-repair first.","url":"https://agentshelf.syntexa.ch/v1/json-repair?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["```json\n{\"a\":1,}\n```"],"maxLength":100000,"minLength":1,"description":"Almost-JSON text. Fences, smart quotes, trailing commas, single quotes, and unquoted keys are repaired. Example: ```json\\n{\"a\":1,}\\n```"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BGS6nrAxl2Z_Xv7obwHcB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically repairs malformed or broken JSON text and returns the fixed JSON along with a list of transforms applied","exampleAgentPrompt":"Can you fix this broken JSON for me and tell me exactly what was changed to repair it: {\"name\":\"Alice\",\"age\":30,\"city\":\"New York\"","exampleUseCases":[{"title":"Repair LLM-generated broken JSON","prompt":"I got this JSON back from a pipeline but it's malformed — missing a closing bracket and has a trailing comma. Can you repair it deterministically and show me the list of transforms that were applied: {\"items\":[{\"id\":1,\"name\":\"foo\",}]"},{"title":"Fix corrupted config file JSON","prompt":"My app's config file got corrupted and the JSON is invalid. Can you repair this JSON string and tell me exactly what changes were made: {\"host\":\"localhost\" \"port\":5432 \"db\":\"myapp\"}"},{"title":"Validate and clean API response JSON","prompt":"I received a malformed JSON response from a third-party API and need it fixed before I can parse it. Please repair this JSON and list every transform applied: {\"status\":\"ok\",data:{results:[1,2,3]}"}],"resultDescription":"Returns a repaired, valid JSON string along with a structured list of the specific transforms (edits) that were applied to fix the original broken input, enabling full auditability of what was changed.","failureModes":["Input text is not repairable (too corrupted or not JSON-like at all)","Input exceeds 100,000 character limit","Empty string input rejected due to minLength constraint","Payment of $0.002 USDC not fulfilled, resulting in 402 response","Network timeout during processing"],"whenToPreferThis":"Choose this endpoint when you need deterministic, auditable JSON repair without involving an LLM — especially when you need to know exactly which transforms were applied. Prefer the free sandbox endpoint POST /v1/sandbox/json-repair first for testing; use this paid endpoint when you need guaranteed processing in production. Best suited for automated pipelines where reproducibility and a clear change log matter more than flexible interpretation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:47:54.245Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-json-repair-4005a2be"}