# pagos.andreax.dev JSON Fix

> pagos.andreax.dev JSON Fix is a paid API for AI agents from pagos.andreax.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Repairs and validates broken JSON, returning a clean, well-formed JSON object

## Facts

- Endpoint: GET https://pagos.andreax.dev/api/taller/peaje/json-fix
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pagos-andreax-dev-json-fix-11c8bfe2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-b5J7dbPX1pZoWs9zDfJ9

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 pagos-andreax-dev-json-fix-11c8bfe2
```

Example prompt: Can you fix this broken JSON for me? It has some syntax errors and won't parse: {name: 'Alice', age: 30, hobbies: ['reading', 'coding'}.

## When to prefer this

Use this endpoint when you have a JSON string that fails to parse due to syntax errors such as unquoted keys, missing commas, mismatched brackets, or trailing commas, and you need a quick, cheap automated repair without writing custom parsing logic. Ideal for high-volume pipelines where LLMs or scrapers frequently emit slightly malformed JSON.

## Known failure modes

- Input text is too ambiguous to infer valid JSON structure — returns error or best-effort result
- Input is entirely non-JSON (plain prose) with no recoverable structure
- Deeply nested or extremely large JSON may timeout or fail partial repairs
- Missing required 'input' query parameter returns 400 error
- Service unavailable returns 402 or 5xx

## How this service works

Repara/valida JSON roto y lo devuelve limpio. Herramienta dev de alto volumen. input=JSON o texto.

## Output

A clean, validated JSON object with all syntax errors corrected — missing brackets closed, unquoted keys quoted, trailing commas removed, and the structure made fully parseable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "JSON roto o texto"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pagos-andreax-dev-json-fix-11c8bfe2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pagos.andreax.dev](https://www.zero.xyz/host/pagos.andreax.dev/llms.txt)
