Skip to content
Fourohtwo

apiacre.com/v1/data/json-repair

Repair caller-supplied malformed JSON by safely removing an outer Markdown fence, comments, single-quoted strings, unquoted identifier keys, Python literals, and trailing commas, with transformation hashes and strict rejection of duplicate keys or non-finite numbers.

BaseSolanaAnswering
POSThttps://apiacre.com/v1/data/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://apiacre.com/v1/data/json-repair", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"content":"```json\n{\n  // generated result\n  status: 'ok',\n  rows: [1, 2, 3,],\n  active:...","repairs":["markdown_fence","comments","single_quoted_strings","unquoted_keys","python_literals","trailing_commas"]}),
});
console.log(await res.json());

Example input

{
  "content": "```json\n{\n  // generated result\n  status: 'ok',\n  rows: [1, 2, 3,],\n  active:...",
  "repairs": [
    "markdown_fence",
    "comments",
    "single_quoted_strings",
    "unquoted_keys",
    "python_literals",
    "trailing_commas"
  ]
}

More from API AcreProvider status