{"uid":"cap_AXVNm-P9UvhFYOopA0s94","slug":"agent-guard-json-repair-8dc95a56","name":"Agent Guard JSON Repair","description":"Safety and trust layer for AI agents: PII redaction, scam/phishing text scan, EVM/Solana address validation, IBAN checks, JSON repair, deep on-chain wallet risk scoring, x402 counterparty endpoint reputation checks. Free discovery endpoints included. Pay with USDC via x402 — no API keys.","url":"https://agent-guard.annushka1190.workers.dev/v1/json/repair","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"json":{"a":1}}},"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_mzmbkQZbjizjZJZsSgJOd","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":"Repairs malformed or broken JSON strings and returns a valid, parsed JSON object","exampleAgentPrompt":"This JSON response I got back is malformed and won't parse — can you use Agent Guard to repair it and give me back valid JSON? Here it is: {a: 1, b: 'hello', c: [1, 2, 3}","exampleUseCases":[{"title":"Fix broken LLM JSON output","prompt":"The language model returned this JSON but it has syntax errors and my code can't parse it — please repair it: {\"name\": \"Alice\", \"age\": 30, \"tags\": [\"admin\", \"user\"}}"},{"title":"Recover truncated API response","prompt":"I got a truncated JSON response from an upstream API and it's missing the closing brackets. Can you repair this and give me back valid JSON? Here's what I have: {\"order_id\": 12345, \"items\": [{\"sku\": \"ABC\", \"qty\": 2}"},{"title":"Clean up JSON with unquoted keys","prompt":"This JSON snippet has unquoted keys and trailing commas and won't parse — can you fix it for me? It looks like: {name: 'Bob', scores: [10, 20, 30,]}"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success and a 'json' field containing the repaired, fully valid parsed JSON object if repair was successful.","failureModes":["Input is so severely malformed that repair is impossible — returns ok: false","Non-JSON input (e.g. plain text or binary) cannot be repaired","Network or payment failure if USDC payment via x402 is not processed correctly","Empty or missing body field results in a validation error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-use JSON repair without managing API keys, especially in agentic pipelines that occasionally receive malformed JSON from LLMs, third-party APIs, or user input. It is ideal when you want a compliance-focused toolset that also handles PII and blockchain address validation on the same platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:41:56.773Z","isFirstParty":false}