Skip to content
Fourohtwo

json-repair.agentdiet.dev/v1/json-repair

Deterministic A2A Broken-JSON Repair & Schema Validator (/v1/json-repair) — Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. (https://json-repair.agentdiet.dev/v1/json-repair)

BaseUnchecked
GEThttps://json-repair.agentdiet.dev/v1/json-repair

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://json-repair.agentdiet.dev/v1/json-repair?raw_json=%7B%22status%22%3A+%22ok%22%2C+%27items%27%3A+%5B1%2C+2%2C+3%2C%5D%2C%7D");
console.log(await res.json());

Example input

{
  "raw_json": "{\"status\": \"ok\", 'items': [1, 2, 3,],}"
}

More from json-repair