{"uid":"cap_op9mfWdTZQiyLFlnvev17","slug":"canuverify-json-schema-repair-fc2e40ee","name":"CanuVerify JSON Schema Repair","description":"JSON Schema Repair: Applies only explicitly requested, deterministic JSON text repairs and reports the exact operations, diff metrics and stable canonical hash.","url":"https://api.canuverify.com/v1/x402/services/json.schema.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","bodyType","body"],"properties":{"body":{"type":"object","description":"Compact header projection. Use the 402 response body or local OpenAPI for the exact closed request schema.","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","job_id","service_id"],"properties":{"state":{"type":"string"},"job_id":{"type":"string"},"status":{"enum":["accepted","completed","failed","compensated","artifact"]},"service_id":{"type":"string"}},"description":"Compact PAYMENT-REQUIRED projection; the 402 JSON body and canonical OpenAPI publish the complete response contract.","additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BCW8Su8bPDQMB6j98kO2B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies deterministic, explicitly-requested repairs to malformed JSON text and returns the exact operations performed, diff metrics, and a stable canonical hash of the repaired output.","exampleAgentPrompt":"I have a JSON string that's broken and won't parse — can you repair it using CanuVerify's JSON repair service and show me exactly which operations were applied, the diff metrics, and the canonical hash of the fixed output?","exampleUseCases":[{"title":"Audit trail for API response repair","prompt":"This API response came back with malformed JSON — missing a closing bracket and a stray comma. Can you run it through CanuVerify's deterministic JSON repair and give me the full list of operations applied plus the canonical hash so I can log it for auditing?"},{"title":"CI pipeline JSON validation fix","prompt":"My build pipeline is failing because a config JSON file has syntax errors. Use CanuVerify's JSON repair service to fix only what's explicitly broken, then give me the diff metrics and the stable hash of the repaired file so I can verify nothing unexpected changed."},{"title":"Normalize third-party data feed JSON","prompt":"We're ingesting a third-party data feed and the JSON is coming in malformed. Can you repair it with CanuVerify's JSON repair endpoint, report exactly what was changed, and return the canonical hash so we can deduplicate repaired documents on our end?"}],"resultDescription":"Returns a job ID, service ID, and status (accepted/completed/failed/compensated/artifact), along with the repaired JSON text, an explicit log of every repair operation applied, diff metrics quantifying the changes, and a stable canonical hash of the repaired output for verification and deduplication purposes.","failureModes":["Input JSON is so severely malformed that no deterministic repair is possible — returns failed status","Request body does not conform to the required schema (missing type, method, bodyType, or body fields) — returns 400-level error","Payment not completed or USDC balance insufficient — returns 402 Payment Required","Service temporarily unavailable — returns 5xx error","Hash collision or canonicalization ambiguity in edge cases — repair may be marked compensated"],"whenToPreferThis":"Choose this endpoint when you need a fully deterministic, auditable JSON repair that documents every single change made and produces a verifiable canonical hash — ideal for pipelines requiring reproducibility, audit logs, or deduplication of repaired documents. Prefer it over generic JSON parsers or LLM-based fixers when you need provable, non-creative repairs (no hallucinated structure changes) and a stable fingerprint of the output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:27:57.174Z","isFirstParty":false}