N

Netzhandwerker Agent Tools · Json Repair

by Netzhandwerker Agent Tools

POSTBase

$0.001

per call · USD Coin on Base

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.

Endpoint

POST https://tools.halowerk.com/v1/json/repair

1

Calls / 30d

1

Unique payers / 30d

Aug 16

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://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```"
  }),
});
const data = await res.json();
cURL
curl -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```"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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
}

Payment details

Pay to0x2880edfff13100677bf97a3cbdf3bc34771c4e5e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Netzhandwerker Agent Tools & similar services