{"uid":"cap_CpxsWRnaiJWhUe7wjhwwy","slug":"vextorium-json-repair-521be37e","name":"Vextorium JSON Repair","description":"Repair broken JSON, typical of LLM output: strips ```json fences, comments and surrounding text, trailing commas, single quotes, unquoted keys, Python True/None and unclosed brackets. Returns the object and clean JSON and, if you pass a JSON Schema, whether it validates and why not.","url":"https://api.vextorium.com/reparar-json-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"texto":{"type":"string"},"esquema":{"type":"object","description":"optional JSON Schema"}}},"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_MeF9Iy6unNQJDCwyQ1yeW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fixes malformed JSON typical of LLM output by stripping markdown fences, comments, trailing commas, single quotes, unquoted keys, Python literals, and unclosed brackets, returning a parsed object","exampleAgentPrompt":"The LLM returned this messy text and I need it as a clean JSON object — it has markdown fences, trailing commas, and Python-style True/None values: ```json\\n{name: 'Alice', active: True, tags: [\\\"dev\\\",],}\\n```","exampleUseCases":[{"title":"Clean LLM pipeline JSON output","prompt":"My AI pipeline returned this string that's supposed to be JSON but it has backtick fences, trailing commas, and unquoted keys — can you repair it and give me the actual object? Here's the raw text: ```json\\n{name: 'Bob', age: 30, active: True,}\\n```"},{"title":"Validate and repair structured data","prompt":"I have this JSON-like string from a language model response that uses single quotes and has Python None values instead of null — fix it to valid JSON and also validate it against this schema: {\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"name\\\":{\\\"type\\\":\\\"string\\\"}}}. The text is: {'name': None, 'score': 0.9,}"},{"title":"Strip surrounding prose from JSON response","prompt":"The model wrapped the JSON in a paragraph of explanation text with a code block — can you extract and repair just the JSON object from this blob? Here it is: 'Sure! Here is the result: ```json\\n{\\\"status\\\": \\\"ok\\\", \\\"items\\\": [1,2,3,],}\\n``` Let me know if you need anything else.'"}],"resultDescription":"Returns an object containing: the repaired JSON as a string (`json`), the parsed JavaScript object (`objeto`), a boolean `reparado` indicating whether repairs were made, and a boolean `ya_era_valido` indicating whether the input was already valid JSON requiring no changes.","failureModes":["Input JSON too structurally broken to recover (e.g. completely garbled text) — may return null object","Schema validation failure if optional `esquema` provided and repaired JSON doesn't conform","Empty or whitespace-only `texto` input causing parse error","Network or payment processing errors returning HTTP 402/500"],"whenToPreferThis":"Choose this endpoint when processing LLM-generated output that needs to be parsed as JSON but may contain common LLM formatting artifacts like markdown fences, Python boolean literals, trailing commas, single quotes, or unquoted keys. It is purpose-built for the LLM-output-cleaning use case, unlike generic JSON validators that simply reject invalid input rather than repairing it.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:48:00.696Z","isFirstParty":false,"canonicalSlug":"vextorium-json-repair-521be37e"}