# Aizamon JSON Repair API

> Aizamon JSON Repair API is a paid API for AI agents from aizamon.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Accepts broken or malformed JSON strings, repairs syntax errors, and returns the corrected JSON object along with a list of changes made.

## Facts

- Endpoint: GET https://aizamon.com/x402/v1/json?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aizamon-json-repair-api-0676477a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rTvJeFKPGoO2sxdy_q3KZ

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 aizamon-json-repair-api-0676477a
```

Example prompt: Can you repair this broken JSON for me — it has a trailing comma and won't parse: '{"a":1,"b":2,}'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JSON syntax repair service that fixes common issues like trailing commas, missing brackets, and minor syntax errors without inventing missing values. Ideal for agent pipelines that frequently encounter malformed JSON from LLMs, user input, or third-party APIs and need a cheap, fast fix-up step.

## Known failure modes

- Missing required 'q' query parameter returns error
- Input too large or complex may fail to repair
- Structurally ambiguous JSON where missing values cannot be inferred returns partial result without invented values
- Network or payment authorization failure returns 402

## How this service works

Aizamon is an operator-run Canadian shop: $5 emailed security summaries via Stripe, Tor tooling for Cursor, and redacted developer telemetry. Named support. Clear terms.

## Output

Returns a JSON object with an 'ok' boolean, a SKU identifier ('SKU_AG_JSON_01'), and a 'result' object containing the repaired JSON value, a boolean 'repaired' flag, and an array 'changes' listing what was fixed (e.g. 'trailing comma'). The protocol field confirms x402 payment rail.

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Broken JSON. Syntax is repaired. Missing values are not invented."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "sku": {
       "type": "string"
      },
      "result": {
       "type": "object"
      },
      "protocol": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "sku": "SKU_AG_JSON_01",
  "result": {
   "json": {
    "ok": true,
    "value": {
     "a": 1
    },
    "changes": [
     "trailing comma"
    ],
    "repaired": true
   }
  },
  "protocol": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aizamon-json-repair-api-0676477a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aizamon.com](https://www.zero.xyz/host/aizamon.com/llms.txt)
