81trust / 100
Json Repair
by HALOWERK Agent Tools in AI models & inference
x402 APIPassing, checked 2 h ago
Repariert die typischen Fehler aus Sprachmodell-Ausgaben und Fremdsystemen: Markdown-Zaun, haengende Kommas, einfache Anfuehrungszeichen, unquotierte Schluessel, Kommentare, typografische Anfuehrungszeichen, unsichtbare Zeichen, fehlende Klammern, NaN und Infinity. Liefert das geparste Objekt und ein Protokoll jeder einzelnen Reparatur.
POST https://tools.halowerk.com/v1/json/repair
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 37 ms typical, 37 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://tools.halowerk.com/v1/json/repair" \
-H "content-type: application/json" \
-d '{"text":"```json\n{name: 'Bau GmbH', jahr: 2026, tags: ['a','b',], /* Notiz */ aktiv: true,}\n```"}'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%2Ftools.halowerk.com%2Fv1%2Fjson%2Frepair
const res = await pay("https://tools.halowerk.com/v1/json/repair", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"```json\n{name: 'Bau GmbH', jahr: 2026, tags: ['a','b',], /* Notiz */ aktiv: true,}\n```"}),
});
console.log(await res.json());Example input
{
"text": "```json\n{name: 'Bau GmbH', jahr: 2026, tags: ['a','b',], /* Notiz */ aktiv: true,}\n```"
}Example output
{
"json": "{\"name\":\"Bau GmbH\",\"jahr\":2026,\"tags\":[\"a\",\"b\"],\"aktiv\":true}",
"parsed": {
"aktiv": true,
"jahr": 2026,
"name": "Bau GmbH",
"tags": [
"a",
"b"
]
},
"repair_count": 5,
"repairs": [
{
"detail": "Markdown-Zaun um das JSON entfernt",
"fix": "code_fence_removed"
},
{
"count": 1,
"fix": "comments_removed"
},
{
"count": 2,
"fix": "trailing_comma_removed"
},
{
"count": 3,
"fix": "single_quotes_converted"
},
{
"count": 4,
"fix": "unquoted_key_or_value_quoted"
}
],
"valid_after": true,
"valid_before": false
}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 | 34 ms | $0.001 |
| 5 h ago | Passed | 402 | 97 ms | $0.001 |
| 10 h ago | Passed | 402 | 37 ms | $0.001 |