$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-repair4
Calls / 30d
1
Unique payers / 30d
Sep 9
Last called
exact
Payment scheme
Call this service
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 -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
0x218baf6a0621a8aba7e89bbda72818dc7e428410USDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7eIs this your API?
Pin it to the top of Other and the homepage with a featured placement.
More from Up & similar services
Up · Image Text
x402-gateway-production.up.railway.app
Image generation with accurate text rendering using Ideogram v3 (best for logos, signage)
Up · RSI Reversion Swing BTC
signal-engine-production-d88d.up.railway.app
Individual arena strategy signal
Up · Remove Background
clearcut-production-bcc0.up.railway.app
Remove the background from an image URL and return a hosted transparent PNG URL. After evaluating the result, send a quick rating to POST /feedback using the returned feedback_id. Help us improve the service!