Skip to content
Fourohtwo

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.

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

Uptime100% of 3 checks in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://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,],}"
}