# Deterministic A2A Broken-JSON Repair & Schema Validator

> Deterministic A2A Broken-JSON Repair & Schema Validator is a paid API for AI agents from x402broker.com, paid per call via MPP, $0.002/call, status unknown (last checked 2026-10-23).

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash

## Facts

- Endpoint: POST https://x402broker.com/v1/json-fix?utm_source=zero.xyz
- Price: $0.002/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: x402broker.com
- Website: https://x402broker.com
- Canonical page: https://www.zero.xyz/c/x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-cb22173d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RDCMVZ5_3k8gs0qhoNRPZ

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 x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-cb22173d -d '<json body>'
```

Example prompt: This JSON came back from the LLM with trailing commas and markdown code fences and it's breaking my pipeline — can you clean it up and give me valid JSON back?

## When to prefer this

Choose this endpoint when you need a fast, deterministic (non-AI) JSON repair step in an automated multi-agent pipeline where LLM outputs frequently arrive malformed, truncated, or markdown-wrapped. Prefer it over manual parsing hacks or prompt-engineering retries when reliability and pipeline stability matter more than flexibility.

## Known failure modes

- Input is so severely malformed that deterministic repair is impossible — returns an error indicating irreparable structure
- Empty or whitespace-only raw_json input rejected with validation error
- Input is not JSON-like at all (e.g. plain prose) — may return error or best-effort partial result
- Network timeout or service unavailability returns HTTP 5xx

## How this service works

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. (Live x402 v2, IETF MPP & MCP endpoint at https://x402broker.com/v1/json-fix)

## Output

A repaired, valid JSON object reconstructed from the malformed or truncated input string, with all common LLM output issues (trailing commas, markdown fences, single quotes, truncation) resolved deterministically.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "raw_json"
 ],
 "properties": {
  "raw_json": {
   "type": "string",
   "minLength": 1,
   "description": "Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-cb22173d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402broker.com](https://www.zero.xyz/host/x402broker.com/llms.txt)
