{"uid":"cap_Q6Q95GzMeBfGkxHOlrG6r","slug":"mesh-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-580fc118","name":"Deterministic A2A Broken-JSON Repair & Schema Validator","description":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. (Live x402 v2, IETF MPP & MCP endpoint at https://mesh.agentdiet.dev/v1/json-normalizer)","url":"https://mesh.agentdiet.dev/v1/json-normalizer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["raw_json"],"properties":{"raw_json":{"type":"string","minLength":1,"description":"Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.002","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FNLYJ1HEte8VdUdwaPyzf","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"mesh.agentdiet.dev","brandSlug":"mesh-agentdiet-dev-mpp","brandBaseUrl":"https://mesh.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines can safely consume structured data without crashes.","exampleAgentPrompt":"This JSON output from my LLM has trailing commas and markdown fences wrapped around it and it's breaking my pipeline — can you repair and normalize it so it's valid JSON: ```{\"name\": \"Alice\", \"score\": 42,}```?","exampleUseCases":[{"title":"Fix LLM output in agent pipeline","prompt":"My AI agent just returned this malformed JSON with trailing commas and it's crashing my downstream processor — please repair it and give me back clean valid JSON: {\"status\": \"ok\", \"items\": [\"a\", \"b\",]}"},{"title":"Strip markdown fences from model response","prompt":"The model wrapped its JSON output in triple backticks and added single quotes instead of double quotes — can you normalize this so I can parse it: ```{'user': 'bob', 'age': 30}```?"},{"title":"Recover truncated JSON from long generation","prompt":"My LLM hit the token limit mid-generation and the JSON got cut off partway through — can you try to repair and complete this truncated JSON so it's valid: {\"results\": [{\"id\": 1, \"name\": \"foo\"}, {\"id\": 2, \"name\": \"bar\""}],"resultDescription":"A repaired, valid JSON object that has been cleaned of common LLM output artifacts including trailing commas, markdown code fences, single-quote delimiters, and truncation issues, ready for downstream programmatic consumption.","failureModes":["JSON too severely malformed or ambiguous to deterministically repair — returns error or best-effort partial result","raw_json parameter missing or empty — returns 400-level validation error","Input so truncated that structure cannot be inferred — repair may produce incorrect schema","Payment not processed (x402) — returns 402 Payment Required before repair is attempted"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives raw LLM-generated JSON that fails standard JSON.parse() due to common artifacts like trailing commas, markdown wrapping, or single quotes, and you need a deterministic (non-AI, rule-based) repair rather than another LLM call to fix it. Ideal for production pipelines requiring reliable, fast, low-cost JSON normalization without introducing additional model latency or hallucination risk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:21:01.358Z","isFirstParty":false,"canonicalSlug":"mesh-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ae3fa643"}