{"uid":"cap_LK-CB8SeiLgq5voAVxlT3","slug":"json-repair-and-schema-validation-service-ec96de55","name":"JSON Repair and Schema Validation Service","description":"Pay-per-request evidence and data tools: CSV validation and reconciliation, DNS/email configuration evidence, and bounded official weather, earthquake, vehicle, company and study records. Exact USDC prices, explicit JSON contracts and source provenance. No mailbox, ownership, medical or safety guarantees.","url":"https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/json/repair","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"result":{"valid":true,"value":{"count":2,"status":"ok"},"repairs":["quote-object-keys","convert-single-quoted-strings","remove-trailing-commas"],"repaired":true,"input_sha256":"8147e3f39e30dbd5b9b6c4d29a06d543dc7402eda2d1b3d8d00b508b36977546","schema_valid":true,"output_sha256":"321dcf1c0f4785b1a8db97d962655d69b487533cc4a8ca81da64795c7ed16dfd","schema_errors":[],"normalized_json":"{\"count\":2,\"status\":\"ok\"}"},"service":"Foundry PAR-007","version":"illustrative","endpoint":"json-contract-repair","protocol":"x402-v2"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HMZ04JbzCPjlxmk8SIe-y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed or near-valid JSON into well-formed JSON and optionally validates it against a safe JSON Schema subset","exampleAgentPrompt":"This JSON from the LLM output has single-quoted strings, unquoted keys, and trailing commas — can you repair it into valid JSON and tell me what fixes were applied?","exampleUseCases":[{"title":"Fixing LLM-generated malformed JSON","prompt":"The AI returned this JSON but it has single-quoted strings and trailing commas everywhere — can you repair it into valid JSON so I can actually use it in my app?"},{"title":"Validating repaired API response","prompt":"I'm getting malformed JSON back from a third-party API with unquoted keys and extra commas — can you fix it and then validate it against my expected schema to make sure the structure is correct?"},{"title":"Normalizing user-submitted JSON config","prompt":"A user pasted this JSON config into our form but it's not quite valid — it has some single quotes and trailing commas. Can you repair it into proper JSON and tell me exactly what changes were made?"}],"resultDescription":"Returns a JSON object indicating whether the input was valid, whether repairs were applied, the repaired JSON string, and a list of named repair operations performed (e.g. 'quote-object-keys', 'convert-single-quoted-strings', 'remove-trailing-commas')","failureModes":["Input too large or unbounded (service targets bounded near-JSON)","Input is so malformed it cannot be deterministically repaired","Schema validation fails after repair if provided schema is incompatible","Invalid or unsupported JSON Schema subset provided for validation","Network timeout or worker cold-start latency"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair (not LLM-based guessing) — ideal for fixing predictable issues like trailing commas, single-quoted strings, and unquoted keys. Prefer it over manual parsing when you need an audit trail of exactly what repairs were applied, or when you want to validate the repaired output against a schema in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:55:30.528Z","isFirstParty":false}