# Deterministic A2A Broken-JSON Repair & Schema Validator

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

Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) into valid JSON deterministically

## Facts

- Endpoint: GET https://sec-intel.agentdiet.dev/v1/json-normalizer?utm_source=zero.xyz
- Price: $0.002/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: sec-intel.agentdiet.dev
- Website: https://sec-intel.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/sec-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-3e1bd633
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P-yKxjbBOvJr0V0xtrHVp

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 sec-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-3e1bd633
```

Example prompt: This JSON from my LLM is broken — it has trailing commas and markdown code fences wrapping it. Can you repair it into valid JSON? Here's the raw string: ```{"name": "Alice", "age": 30,}```

## When to prefer this

Choose this endpoint when you need a fast, deterministic, paid-per-call JSON repair service integrated into a multi-agent or MCP pipeline that needs guaranteed valid JSON output from LLMs. Prefer it over writing custom repair logic when you need reliability at scale and want to avoid crashing pipelines due to common LLM JSON formatting errors like trailing commas, markdown wrapping, or single quotes.

## Known failure modes

- Input is so severely truncated or corrupted that no deterministic repair is possible
- Input is not JSON-like at all (plain text, binary), returning an error
- Ambiguous structure where multiple valid repairs exist and the service must choose one heuristically
- Network or service timeout on large payloads

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

## Output

A repaired, valid JSON object that can be safely parsed by downstream systems, with malformed syntax (trailing commas, single quotes, markdown fences, truncation) corrected 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/sec-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-3e1bd633/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sec-intel.agentdiet.dev](https://www.zero.xyz/host/sec-intel.agentdiet.dev/llms.txt)
