{"slug":"api-17711-xyz-registry-extract-correct-service-v1-extract-co-c7754f","title":"JSON repair","host":"api.17711.xyz","method":"POST","resource":"https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json","category":"code","description":"JSON repair: extracts structured JSON from messy text or LLM output, optionally validating and auto-correcting it against a JSON Schema","price_listed":0.006,"price_asked":0.006,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":908,"reported_calls_30d":8,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"schema":null,"text":"string"},"bodyType":"json","method":"POST","type":"http"},"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"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.006,"price_match":true,"latency_ms":908,"error":null}],"description_full":"JSON repair: extracts structured JSON from messy text or LLM output, optionally validating and auto-correcting it against a JSON Schema","last_updated":"2026-10-09T12:59:10.129Z","schemes":["exact"]}