# Cheap Utilities JSON Repair

> Cheap Utilities JSON Repair is a paid API for AI agents from cheap-utilities.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Repairs malformed JSON (trailing commas, single quotes, bare keys, comments, Python literals, missing brackets) and returns the parsed result

## Facts

- Endpoint: GET https://cheap-utilities.x402tookit.com/json-repair?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cheap-utilities-json-repair-805e27ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ST7K6TM1oOm8DRxOTWH-M

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 cheap-utilities-json-repair-805e27ba
```

Example prompt: Can you fix this broken JSON for me? It has trailing commas and single quotes so it won't parse: {'name': 'Alice', 'active': True, 'tags': ['admin', 'user',]}

## When to prefer this

Choose this endpoint when you have a known malformed or non-standard JSON string that needs to be repaired and parsed in one step — especially for LLM-generated JSON, scraped config files, Python serialized dicts, or hand-written JSON with linting errors. It handles a broad set of common JSON syntax violations in a single cheap call. Prefer it over writing custom fix logic or calling a general-purpose LLM when the input is under 4000 characters and you need deterministic repair with an audit trail of what was changed.

## Known failure modes

- Input text exceeds 4000 characters — request will be rejected or truncated
- JSON is too structurally corrupted to recover — parsed field returns null with a verdict indicating failure
- Ambiguous malformed input where multiple valid repairs are possible — one interpretation chosen without guarantee
- Non-JSON input (e.g. XML, CSV) — will fail to parse and return null result

## How this service works

Repair broken JSON: trailing commas, single quotes, bare keys, comments, Python None/True, missing brackets. Returns parsed.

## Output

Returns an object containing: the parsed JSON object (if repair succeeded), the repaired JSON text string, a list of specific repairs that were applied, a summary and verdict, a degraded flag indicating partial recovery, and a disclaimer if applicable

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "The broken JSON text (up to 4000 characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "parsed": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "note": {},
        "tags": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        },
        "active": {
         "type": [
          "boolean",
          "null"
         ]
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "repairs": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "repairedText": {
       "type": [
        "null",
        "string"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cheap-utilities-json-repair-805e27ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cheap-utilities.x402tookit.com](https://www.zero.xyz/host/cheap-utilities.x402tookit.com/llms.txt)
