{"uid":"cap_-CyI8YYwuwWb4R45rq07N","slug":"netzhandwerker-json-repair-4833ad3a","name":"Netzhandwerker JSON Repair","description":"x402-Werkzeuge für autonome Agenten.","url":"https://tools.netzhandwerker.de/v1/json/repair","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Der fehlerhafte JSON-Text"}}},"responseSchema":{"type":"json","example":{"json":"{\"name\":\"Bau GmbH\",\"jahr\":2026,\"tags\":[\"a\",\"b\"],\"aktiv\":true}","parsed":{"jahr":2026,"name":"Bau GmbH","tags":["a","b"],"aktiv":true},"repairs":[{"fix":"code_fence_removed","detail":"Markdown-Zaun um das JSON entfernt"},{"fix":"comments_removed","count":1},{"fix":"trailing_comma_removed","count":2},{"fix":"single_quotes_converted","count":3},{"fix":"unquoted_key_or_value_quoted","count":4}],"valid_after":true,"repair_count":5,"valid_before":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vtGBHyKqIDdERU2tJvB8b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Automatically repairs malformed JSON text by fixing common syntax errors and returns both the cleaned JSON string and a parsed object with a detailed repair log.","exampleAgentPrompt":"This JSON string won't parse — can you fix it? It has trailing commas and single quotes: {'name':'Bau GmbH','jahr':2026,'tags':['a','b',],'aktiv':true}","exampleUseCases":[{"title":"Fix LLM-generated JSON output","prompt":"The AI returned JSON wrapped in a markdown code block with trailing commas and single quotes — can you repair it so I can actually parse it? Here's the bad text: ```json {'name':'Acme Corp','year':2024,'active':true,}```"},{"title":"Repair API response with comments","prompt":"I'm getting JSON back from a legacy API that includes JavaScript-style comments and unquoted keys and it's breaking my parser — can you clean it up? The text is: {name: 'Widget', // product name price: 9.99}"},{"title":"Validate JSON before database insert","prompt":"Before I save this JSON to the database, can you check if it's valid and fix any issues like extra commas or code fences? Here's the text: {\"id\": 42, \"tags\": [\"x\", \"y\",], \"active\": true,}"}],"resultDescription":"Returns an object containing the repaired JSON as a string, the fully parsed JSON object, a list of repairs applied (each with a fix type and detail), boolean flags for validity before and after repair, and the total repair count.","failureModes":["Input text is so malformed it cannot be repaired into valid JSON — endpoint may return an error or indicate valid_after remains false","Empty or null text input may result in a validation error","Extremely large JSON strings may time out","Input that is not JSON-like at all (plain prose) may fail to produce a meaningful result"],"whenToPreferThis":"Choose this endpoint when you have a JSON string that fails to parse due to common syntax issues like trailing commas, single quotes, unquoted keys, markdown code fences, or inline comments — especially useful for cleaning up LLM-generated JSON or outputs from non-strict JSON serializers. Prefer this over manual string manipulation when you need a detailed repair log explaining what was changed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:28.489Z","isFirstParty":false}