Api Endpoint

17711 JSON Repair and Extract

JSON repair API: extract valid JSON from messy text or model output and fix it against a JSON Schema

Open interactive test console

Offering

Provider
api.17711.xyz
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json
MIME type
Not provided
First seen
2026-10-16T01:50:32.458Z
Last seen
Tags
json-repair, JSON, json-schema, structured-data, model-output

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.006 USDC
Atomic price: 6000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "6000",
    "payTo": "0xc0bdc7d3635d0f8a907f41320d80e06f0cdf82ba"
  }
]

Observed health

Status
Healthy
Latest latency
308 ms
Average latency
1056 ms
HTTP status
200
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "properties": {
    "body": {
      "properties": {
        "schema": {
          "default": null,
          "description": "Optional JSON Schema to validate the extracted value against and auto-correct where a\nbounded, deterministic fix rule applies. Omitted = extraction only, no validation."
        },
        "text": {
          "description": "Free-form or messy text to extract structured JSON from -- already-valid JSON, JSON\nwrapped in prose or a markdown code fence, or malformed JSON (trailing commas,\nsingle-quoted strings, unquoted keys, a truncated array/object).",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "title": "ParseJsonRequest",
      "type": "object"
    },
    "bodyType": {
      "const": "json"
    },
    "method": {
      "const": "POST"
    },
    "type": {
      "const": "http"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "$defs": {
    "AppliedFix": {
      "description": "One deterministic correction actually applied to the extracted value.",
      "properties": {
        "detail": {
          "description": "Human-readable detail of what changed.",
          "type": "string"
        },
        "path": {
          "description": "JSON Pointer to the field that was corrected (e.g. `/user/age`; `\"\"` = the whole value).",
          "type": "string"
        },
        "rule": {
          "description": "Which bounded correction rule fired (e.g. `type_coercion`, `additional_property_stripped`,\n`enum_case_insensitive_match`, `required_default_filled`, `clamped_to_minimum`,\n`clamped_to_maximum`, `array_truncated_to_max_items`).",
          "type": "string"
        }
      },
      "required": [
        "path",
        "rule",
        "detail"
      ],
      "type": "object"
    },
    "RemainingIssue": {
      "description": "One schema violation that could NOT be corrected -- never silently dropped or guessed.",
      "properties": {
        "keyword": {
          "description": "The JSON Schema keyword that failed (e.g. `pattern`, `format`, `minItems`, `oneOf`).",
          "type": "string"
        },
        "message": {
          "description": "The underlying validator's own error message.",
          "type": "string"
        },
        "path": {
          "description": "JSON Pointer to the field that still fails validation.",
          "type": "string"
        }
      },
      "required": [
        "path",
        "keyword",
        "message"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "properties": {
        "body": {
          "properties": {
            "schema": {
              "default": null,
              "description": "Optional JSON Schema to validate the extracted value against and auto-correct where a\nbounded, deterministic fix rule applies. Omitted = extraction only, no validation."
            },
            "text": {
              "description": "Free-form or messy text to extract structured JSON from -- already-valid JSON, JSON\nwrapped in prose or a markdown code fence, or malformed JSON (trailing commas,\nsingle-quoted strings, unquoted keys, a truncated array/object).",
              "type": "string"
            }
          },
          "required": [
            "text"
          ],
          "title": "ParseJsonRequest",
          "type": "object"
        },
        "bodyType": {
          "const": "json"
        },
        "method": {
          "const": "POST"
        },
        "type": {
          "const": "http"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "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"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}