# x402broker JSON Normalizer

> x402broker JSON Normalizer is a paid API for AI agents from x402broker.com, paid per call via x402 or MPP, $0.002/call, status unknown (last checked 2026-10-20).

Repairs malformed or truncated LLM-generated JSON (trailing commas, markdown fences, single quotes) into valid, parseable JSON for multi-agent pipelines.

## Facts

- Endpoint: GET https://x402broker.com/v1/json-normalizer?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402broker-json-normalizer-8aae45eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7reWaFsYjDaOA5gr_DmQx

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-json-normalizer-8aae45eb
```

Example prompt: This JSON came back from an LLM and it has trailing commas, single quotes, and a markdown code fence — can you run it through the JSON normalizer to fix it so my pipeline can parse it? Here's the raw string: {"name": 'Alice', "scores": [1, 2, 3,], }

## When to prefer this

Choose this endpoint when your multi-agent pipeline receives JSON from LLMs that frequently produces non-standard formatting errors like trailing commas, markdown wrappers, or single quotes. Ideal for automated pipelines where manual JSON fixing is not feasible and crashes must be avoided. Prefer over generic JSON linters when you specifically need LLM-output-aware heuristic repair rather than just schema validation.

## Known failure modes

- Input JSON too severely malformed to repair deterministically
- Ambiguous structure where multiple valid repairs exist
- Empty or null input string
- Input exceeds token/size limits
- Network timeout or service unavailability

## 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-normalizer)

## Output

Returns the repaired, valid JSON object with all common LLM formatting errors corrected: trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed. Output is a parseable, schema-compliant JSON payload.

## 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-json-normalizer-8aae45eb/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)
