Skip to content
Fourohtwo

How do I turn this broken JSON from an LLM into valid JSON

forge.fizzl.eu/p/json-repair

How do I turn this broken JSON from an LLM into valid JSON? JSON repair for LLM output: Turns the broken JSON a language model wrote into valid JSON and lists every fix it made. $0.001 per call in USDC, charged only on a 2xx answer. Try it free: https://forge.fizzl.eu/try/json-repair. Signed receipt. Own this tool for $1.00 and earn from every call: https://forge.fizzl.eu/forge/packages/json-repai

BaseAnswering
GEThttps://forge.fizzl.eu/p/json-repair

Uptime100% of 1 check 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://forge.fizzl.eu/p/json-repair?text=Here+is+the+result%3A%0A%60%60%60json%0A%7Bname%3A+%27Ada%27%2C+tags%3A+%5B%27math%27%2C+%27code%27%2C%5D%2C+active%3A+True%2C+%2F%2F+note%0A+%22score%22%3A+NaN%7D%0A%60%60%60");
console.log(await res.json());

Example input

{
  "text": "Here is the result:\n```json\n{name: 'Ada', tags: ['math', 'code',], active: True, // note\n \"score\": NaN}\n```"
}

More from x402 ForgeProvider status