# Deterministic A2A Broken-JSON Repair & Schema Validator

> Deterministic A2A Broken-JSON Repair & Schema Validator is a paid API for AI agents from email-verify.agentdiet.dev, paid per call via MPP, $0.002/call, status unknown (last checked 2026-11-21).

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

## Facts

- Endpoint: POST https://email-verify.agentdiet.dev/v1/json-normalizer?utm_source=zero.xyz
- Price: $0.002/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Provider: email-verify.agentdiet.dev
- Website: https://email-verify.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-0f229fe5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vf7IUcfEtLYL1k0zJWQ7y

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 email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-0f229fe5 -d '<json body>'
```

Example prompt: This JSON came back from the LLM with trailing commas and markdown fences and it's breaking my pipeline — can you repair it and return clean, parseable JSON? Here it is: ```json {name: 'Alice', age: 30,} ```

## When to prefer this

Choose this endpoint when you need deterministic, rule-based JSON repair of LLM outputs in a multi-agent pipeline and cannot afford crashes from malformed JSON. Prefer it over manual parsing hacks when you have issues like trailing commas, markdown fences, single quotes, or truncated strings. It is especially valuable in automated pipelines where you need consistent, idempotent repair without AI model overhead.

## Known failure modes

- Input is so severely truncated or corrupted that no deterministic repair is possible — returns an error or best-effort partial result
- Input string is empty or missing the required raw_json field — returns a validation error
- JSON is structurally ambiguous in a way that cannot be resolved deterministically — may return an error or a best-guess result
- Payment not provided or invalid — returns HTTP 402 Payment Required

## 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://email-verify.agentdiet.dev/v1/json-normalizer)

## Output

A JSON object containing the repaired, normalized, and fully valid JSON output. The response represents the best deterministic reconstruction of the malformed input, with issues like trailing commas, markdown fences, single quotes, and truncation resolved.

## 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/email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-0f229fe5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from email-verify.agentdiet.dev](https://www.zero.xyz/host/email-verify.agentdiet.dev/llms.txt)
