U

Up · Json Repair

by Up

POSTBase Sepolia

$0.003

per call · USDC on Base Sepolia

Repair malformed JSON from model or tool output using deterministic CPU rules. Returns parsed value, repaired JSON text and a changed flag. Send JSON {text:string}. Paid calls require a fresh secret random 32-byte base64url Idempotency-Key; reuse it only for retries of the same input. Maximum request body: 128 KiB. Repair may change meaning; validate the result.

Endpoint

POST https://agent-data-fixer-production.up.railway.app/json-repair

4

Calls / 30d

1

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent-data-fixer-production.up.railway.app/json-repair", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "text": "{hello: 'machine',}"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent-data-fixer-production.up.railway.app/json-repair" \
  -H "Content-Type: application/json" \
  -d '{"text":"{hello: 'machine',}"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "operation": "json-repair",
  "requestId": "0000000000000000000000000000000000000000000000000000000000000000",
  "result": {
    "changed": true,
    "text": "{\"hello\": \"machine\"}",
    "value": {
      "hello": "machine"
    }
  }
}

Payment details

Pay to0x218baf6a0621a8aba7e89bbda72818dc7e428410
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Up & similar services