# SignalHarness JSON Repair & Normalize

> SignalHarness JSON Repair & Normalize is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Repairs malformed JSON text, normalizes its structure, and reports duplicate keys and applied fixes

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/json_repair_normalize/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-json-repair-normalize-f3cac8f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__5GCWB-ZOXhsfUicb0CuU

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 signalharness-json-repair-normalize-f3cac8f0 -d '<json body>'
```

Example prompt: This JSON string from the API response is broken and won't parse — can you repair it and normalize the structure, and let me know if there are any duplicate keys? Here it is: {"name": "Alice", "age": 30, "name": "Bob", "tags": ["a", "b",,]}

## When to prefer this

Choose this endpoint when you have a JSON string that fails to parse and you need it repaired automatically without writing custom fix logic. It is especially useful for cleaning up LLM-generated JSON, recovering data from corrupted API responses, or normalizing inconsistently formatted JSON before storage or further processing. Prefer it over a generic JSON validator when you need actual repair and normalization, not just error detection.

## Known failure modes

- Input text is empty or exceeds 65536 characters — validation error
- Input is so severely malformed that no valid JSON can be recovered — result may be empty or partial
- Payment not received or insufficient USDC balance — 402 response before execution
- Network or service timeout — no result returned
- Text is valid JSON already — repairs list will be empty but result is still returned normally

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON object containing: the repaired and normalized JSON value, a list of repairs applied, the normalized JSON as a string, and any duplicate keys detected. Also includes a receipt with payment confirmation, latency, and execution metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "value": {},
   "repairs": [
    "example"
   ],
   "normalized": "example",
   "duplicateKeys": [
    "example"
   ]
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "json_repair_normalize",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "e48ba9ab26657e6400a15821bea7d81c48a83c84ad80cca5b9efd7ff621753e0",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signalharness-json-repair-normalize-f3cac8f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
