API · x402
JSON repair API: extract valid JSON from messy text or model output and fix it against…
JSON repair API: extract valid JSON from messy text or model output and fix it against a JSON Schema
by api.17711.xyz · discovered, not yet claimed by its owner · updated 2026-10-12
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
JSON repair API: extract valid JSON from messy text or model output and fix it against a JSON Schema
Tags: json-repair · json · json-schema · structured-data · model-output · bazaar
Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/35053.jsonfor the price and payment options. - Pay. Call
GET https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.006 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Calls (30d)
- 9 · 1 unique payers (third-party data from the public x402 Bazaar)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.006 | 0xc0bdc7d3635d0f8a907f41320d80e06f0cdf82ba | 120s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xc0bdc7d3635d0f8a907f41320d80e06f0cdf82ba",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "6000",
"amountUsd": 0.006,
"maxTimeoutSeconds": 120
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"applied_fixes": {
"description": "Every correction actually applied, in the order applied.",
"items": {
"$ref": "#/$defs/AppliedFix"
},
"type": "array"
},
"data": {
"description": "The extracted (and, if a schema was supplied, corrected) JSON value."
},
"extraction_method": {
"description": "How `data` was obtained: `\"direct\"` (already valid JSON), `\"repaired\"` (malformed JSON\nfixed in place), or `\"extracted_and_repaired\"` (isolated from surrounding text, then\nfixed).",
"type": "string"
},
"remaining_issues": {
"description": "Every schema violation that remains after correction -- non-empty only when `schema` was\nsupplied and at least one issue couldn't be fixed by a bounded v1 rule.",
"items": {
"$ref": "#/$defs/RemainingIssue"
},
"type": "array"
},
"valid": {
"description": "Whether `data` satisfies `schema` after correction. `None` when no `schema` was supplied\n-- never conflated with \"assumed valid\".",
"type": [
"boolean",
"null"
]
}
},
"required": [
"data",
"extraction_method",
"applied_fixes",
"remaining_issues"
],
"title": "ParseJsonResponse",
"type": "object"
},
"type": {
"const": "json"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"applied_fixes": [
"value"
],
"data": null,
"extraction_method": "string",
"remaining_issues": [
"value"
],
"valid": true
},
"type": null
}Examples
curl
curl "https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidJavaScript
const res = await fetch("https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.17711.xyz
- Endpoint
- https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json
- Machine-readable
/resources/35053.json