{"uid":"cap_6Xp-l3mkoXbroBErH5b4K","slug":"shopify-spy-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-0f8c68e8","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://shopify-spy.agentdiet.dev/v1/json-validator)","url":"https://shopify-spy.agentdiet.dev/v1/json-validator?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_KvZ3sj_OkmTDFsP9vjqe1","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"shopify-spy.agentdiet.dev","brandSlug":"shopify-spy-agentdiet-dev-mpp","brandBaseUrl":"https://shopify-spy.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM-generated JSON (trailing commas, markdown fences, single quotes) so multi-agent pipelines can continue processing without crashing.","exampleAgentPrompt":"This JSON came back from the LLM with trailing commas and markdown code fences and it's crashing my pipeline — can you repair it and give me back clean valid JSON? Here's the raw output: ```json {\"name\": \"Alice\", \"score\": 42,} ```","exampleUseCases":[{"title":"Fixing LLM output in agent pipeline","prompt":"The language model returned this JSON with a markdown fence and a trailing comma and my next agent step is crashing — please repair it: ```json {\"user\": \"bob\", \"items\": [1, 2, 3,]} ```"},{"title":"Recovering truncated API response JSON","prompt":"My LLM truncated its response mid-way and I got incomplete JSON — can you try to repair and complete it? Here's what I got: {\"order_id\": 9912, \"status\": \"pending\", \"items\": [{\"sku\": \"ABC"},{"title":"Sanitizing single-quote JSON from prompt output","prompt":"I have JSON that uses single quotes instead of double quotes and it fails standard parsers — fix it for me so I can continue processing: {'name': 'Jane', 'active': True, 'score': 88}"}],"resultDescription":"Returns a JSON object containing the repaired, syntactically valid JSON, ready for downstream consumption by agents or parsers. May include metadata about what was fixed.","failureModes":["JSON too severely malformed to reconstruct — returns error indicating unrecoverable input","Empty or missing raw_json parameter — returns validation error","Input is already valid JSON — returns it unchanged (idempotent)","Extremely large or deeply nested JSON may time out"],"whenToPreferThis":"Use this endpoint when an LLM or agent in your pipeline produces JSON with common syntax errors such as trailing commas, markdown code fences, single quotes, or truncation. It is purpose-built for multi-agent pipeline error recovery, making it preferable to general-purpose JSON parsers or custom repair scripts when you need a reliable, hosted, pay-per-call fix step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:23:09.445Z","isFirstParty":false,"canonicalSlug":"shopify-spy-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-068a813d"}