81trust / 100
Json Repair
by JSON Repair in Documents & files
x402 APIPassing, checked 2 h ago
Repair malformed JSON text into valid parsed JSON: markdown code fences, single quotes, smart quotes, unquoted keys, trailing commas, comments, Python literals (True/None), raw newlines in strings, and truncated output (auto-closes strings, arrays and objects). Returns the parsed value plus a log of every repair applied. Built for LLM output that almost parses. POST a JSON body like: {"text":"```json\n{name: 'Ada', age: 36, tags: ['x',], active: True"}
POST https://keyronne.com/api/json-repair
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 209 ms typical, 304 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://keyronne.com/api/json-repair" \
-H "content-type: application/json" \
-d '{"text":"```json\n{name: 'Ada', age: 36, tags: ['x',], active: True"}'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%2Fkeyronne.com%2Fapi%2Fjson-repair
const res = await pay("https://keyronne.com/api/json-repair", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"```json\n{name: 'Ada', age: 36, tags: ['x',], active: True"}),
});
console.log(await res.json());Example input
{
"text": "```json\n{name: 'Ada', age: 36, tags: ['x',], active: True"
}Example output
{
"repairs": [
"removed markdown code fence",
"quoted unquoted object key",
"converted single-quoted string to double quotes",
"removed trailing comma",
"normalized True to true",
"closed unbalanced object (input looks truncated)"
],
"value": {
"active": true,
"age": 36,
"name": "Ada",
"tags": [
"x"
]
}
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 303 ms | $0.001 |
| 6 h ago | Passed | 402 | 239 ms | $0.001 |
| 10 h ago | Passed | 402 | 158 ms | $0.001 |
| 13 h ago | Passed | 402 | 209 ms | $0.001 |
| 18 h ago | Passed | 402 | 148 ms | $0.001 |
| 21 h ago | Passed | 402 | 160 ms | $0.001 |
| 24 h ago | Passed | 402 | 304 ms | $0.001 |
| 29 h ago | Passed | 402 | 369 ms | $0.001 |