82trust / 100
Agent Json Repair
by Atinamos JSON Validate / Repair in AI models & inference
x402 APIPassing, checked 3 h ago
Deterministic JSON validation and conservative repair for AI-agent payloads. Repairs unquoted object keys, single-quoted strings, trailing commas, Markdown code fences, UTF-8 BOMs and JSON-compatible Python literals, including nested or repeated defects. No LLM or invented data; every applied transformation is reported.
POST https://agent.atinamos.co.uk/agent/json-repair
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 102 ms typical, 102 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent.atinamos.co.uk/agent/json-repair" \
-H "content-type: application/json" \
-d '{"json":"{foo: 'bar', broken: true,}","mode":"repair"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent.atinamos.co.uk%2Fagent%2Fjson-repair
const res = await pay("https://agent.atinamos.co.uk/agent/json-repair", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"json":"{foo: 'bar', broken: true,}","mode":"repair"}),
});
console.log(await res.json());Example input
{
"json": "{foo: 'bar', broken: true,}",
"mode": "repair"
}Example output
{
"changed": true,
"input_bytes": 27,
"json": "{\"broken\":true,\"foo\":\"bar\"}",
"mode": "repair",
"price_usdc": 0.005,
"repairs": [
"converted_single_quoted_strings",
"quoted_unquoted_object_keys",
"removed_trailing_commas"
],
"result": {
"broken": true,
"foo": "bar"
},
"schema": "atinamos.json-repair.v0.1",
"service": "json-repair",
"status": "repaired",
"valid": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 102 ms | $0.005 |
| 8 h ago | Passed | 402 | 232 ms | $0.005 |