# 17711 Smart Services – JSON Extraction & Correction

> 17711 Smart Services – JSON Extraction & Correction is a paid API for AI agents from api.17711.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Extracts structured JSON from free-form, wrapped, or malformed text and optionally validates and auto-corrects it against a provided JSON Schema

## Facts

- Endpoint: POST https://api.17711.xyz/registry/extract-correct-service/v1/extract-correct/parse_json
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/17711-smart-services-json-extraction-correction-290407b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rQn0pJgNfwSWbFARvfFvW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 17711-smart-services-json-extraction-correction-290407b5 -d '<json body>'
```

Example prompt: I got this messy LLM response that has JSON buried inside some prose and markdown fences — can you pull out the structured JSON and validate it against this schema: {"type":"object","required":["name","age"]}?

## When to prefer this

Use this endpoint when you need to reliably extract JSON from noisy or untrusted text sources — such as LLM completions, scraped web content, or user input — especially when the JSON may be malformed, wrapped in prose, or enclosed in markdown fences. It is the right choice when you also need schema validation and deterministic auto-correction in a single call. Prefer it over a raw JSON parser when inputs are unreliable, and over a general-purpose LLM when you need deterministic, auditable fix rules rather than probabilistic rewriting.

## Known failure modes

- Input contains no recoverable JSON structure — data returns null
- Malformed JSON too severely corrupted to auto-repair — remaining_issues populated
- Schema provided is itself invalid JSON Schema — may cause validation error
- Truncated JSON object with missing closing brackets may not be fully recoverable
- Schema violations that fall outside deterministic fix rules left as remaining_issues

## How this service works

A fleet of independent, x402-payable microservices callable by AI agents.

## Output

Returns an object with: `data` (the extracted/corrected JSON value or null if extraction failed), `valid` (boolean indicating schema validity after corrections), `applied_fixes` (list of auto-corrections made, each with path, rule, and detail), `remaining_issues` (unresolved schema violations with path, keyword, and message), and `extraction_method` (string describing how the JSON was found in the input).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "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)."
  },
  "schema": {
   "type": "string",
   "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "data": null,
 "valid": false,
 "applied_fixes": [
  {
   "path": "string",
   "rule": "string",
   "detail": "string"
  }
 ],
 "remaining_issues": [
  {
   "path": "string",
   "keyword": "string",
   "message": "string"
  }
 ],
 "extraction_method": "string"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/17711-smart-services-json-extraction-correction-290407b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.17711.xyz](https://www.zero.xyz/host/api.17711.xyz/llms.txt)
