# CIEL M2M API — JSON Repair

> CIEL M2M API — JSON Repair is a paid API for AI agents from 169.58.38.67.sslip.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-18).

Repairs and validates malformed JSON strings, returning a corrected, valid JSON object

## Facts

- Endpoint: POST https://169.58.38.67.sslip.io/api/json-repair
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ciel-m2m-api-json-repair-84424ba2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1nXBp6VAw5EoYQYZOUAnK

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 ciel-m2m-api-json-repair-84424ba2 -d '<json body>'
```

Example prompt: This JSON string I got back from the model is malformed — can you repair it and give me valid, parseable JSON? Here it is: {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 (trailing commas, missing brackets, unquoted keys, etc.) and need it automatically corrected. Ideal for post-processing LLM outputs or sanitizing third-party API responses before further use. Prefer over manual regex fixes when the corruption pattern is unpredictable.

## Known failure modes

- Input JSON is so corrupted it cannot be meaningfully repaired — returns error
- Non-JSON input provided — may return validation failure
- Empty input — missing required 'input' field returns 400-level error
- Network timeout on slow or oversized payloads

## How this service works

50+ micro-services for AI agents: data parsing, crypto analytics, security scanning, code tools, and more. Pay per call via x402 (USDC on Base) or RapidAPI subscription.

## Output

A JSON object containing the repaired/corrected JSON under a 'data.key' field, a 'valid' boolean indicating whether the input was already valid, and a 'repaired' boolean indicating whether any corrections were made.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "key": "value"
  },
  "valid": true,
  "repaired": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ciel-m2m-api-json-repair-84424ba2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 169.58.38.67.sslip.io](https://www.zero.xyz/host/169.58.38.67.sslip.io/llms.txt)
