16trust / 100

Reparar Json Pago

by Vextorium in AI models & inference

x402 APIFailing, checked 1 h ago

Repair broken JSON, typical of LLM output: strips ```json fences, comments and surrounding text, trailing commas, single quotes, unquoted keys, Python True/None and unclosed brackets. Returns the object and clean JSON and, if you pass a JSON Schema, whether it validates and why not.

POST https://api.vextorium.com/reparar-json-pago

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
1 h ago: Amount "0.002" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/reparar-json-pago" \
  -H "content-type: application/json" \
  -d '{"texto":"```json\n{name: 'Ana', 'edad': 30, activo: True, tags: ['a','b',],"}'
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%2Fapi.vextorium.com%2Freparar-json-pago
const res = await pay("https://api.vextorium.com/reparar-json-pago", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"texto":"```json\n{name: 'Ana', 'edad': 30, activo: True, tags: ['a','b',],"}),
});
console.log(await res.json());

Example input

{
  "texto": "```json\n{name: 'Ana', 'edad': 30, activo: True, tags: ['a','b',],"
}

Example output

{
  "json": "{\"name\": \"Ana\", \"edad\": 30, \"activo\": true, \"tags\": [\"a\", \"b\"]}",
  "objeto": {
    "activo": true,
    "edad": 30,
    "name": "Ana",
    "tags": [
      "a",
      "b"
    ]
  },
  "reparado": true,
  "ya_era_valido": false
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoAmount "0.002" is not in atomic token units40280 ms$0.002
6 h agoAmount "0.002" is not in atomic token units402227 ms$0.002
10 h agoAmount "0.002" is not in atomic token units40280 ms$0.002
14 h agoAmount "0.002" is not in atomic token units40280 ms$0.002
19 h agoAmount "0.002" is not in atomic token units40288 ms$0.002
23 h agoAmount "0.002" is not in atomic token units40293 ms$0.002
27 h agoAmount "0.002" is not in atomic token units40276 ms$0.002
31 h agoAmount "0.002" is not in atomic token units40284 ms$0.002
34 h agoAmount "0.002" is not in atomic token units40281 ms$0.002
39 h agoAmount "0.002" is not in atomic token units40292 ms$0.002
43 h agoAmount "0.002" is not in atomic token units402104 ms$0.002
2 days agoAmount "0.002" is not in atomic token units40276 ms$0.002
2 days agoAmount "0.002" is not in atomic token units40278 ms$0.002
2 days agoAmount "0.002" is not in atomic token units40298 ms$0.002
2 days agoAmount "0.002" is not in atomic token units40288 ms$0.002