Turn almost-JSON into valid JSON in one call
agents.204-168-199-108.sslip.io/v1/util/json-repair
Turn almost-JSON into valid JSON in one call. Fixes what LLMs and humans break: markdown ```json fences, leading/trailing chatter, // and /* */ comments, single or smart quotes, unquoted keys and values, trailing or missing commas, Python True/False/None, NaN/undefined, hex and +/.5 numbers, raw newlines in strings, and TRUNCATED output (closes open strings, arrays and objects). Returns the parsed
GET
https://agents.204-168-199-108.sslip.io/v1/util/json-repairUptime100% 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://agents.204-168-199-108.sslip.io/v1/util/json-repair?text=Sure%21+Here+is+the+data%3A%0A%60%60%60json%0A%7Bname%3A+%27Acme%27%2C+%22tags%22%3A+%5B%22ai%22%2C+%22x402%22%2C%5D%2C+active%3A+True%2C+%2F%2F+verified%0A+%22score%22%3A+.95%2C+%22notes%22%3A+%22cut+off+her");
console.log(await res.json());Example input
{
"text": "Sure! Here is the data:\n```json\n{name: 'Acme', \"tags\": [\"ai\", \"x402\",], active: True, // verified\n \"score\": .95, \"notes\": \"cut off her"
}