Skip to content
Fourohtwo

api.mekler.ai/v1/data/json/repair-or-convert-document

Conservatively repair JSON syntax or convert JSON and safe YAML while recording every repair. Remove only BOM, complete JSON markdown fences and trailing commas outside strings; abstain on ambiguous or unsupported data. Up to 16000 UTF-8 input bytes, depth 24 and 4000 values. No invented values, semantic validation or code execution. Numeric values that cannot be preserved without rounding return

SolanaBaseAnswering
POSThttps://api.mekler.ai/v1/data/json/repair-or-convert-document

Uptime100% of 2 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://api.mekler.ai/v1/data/json/repair-or-convert-document", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input_format":"json","output_format":"yaml","request_id":"json-conversion-example-001","text":"{\"service\":\"Mekler\",}"}),
});
console.log(await res.json());

Example input

{
  "input_format": "json",
  "output_format": "yaml",
  "request_id": "json-conversion-example-001",
  "text": "{\"service\":\"Mekler\",}"
}

More from Mekler AIProvider status