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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Amount "0.002" is not in atomic token units | 402 | 80 ms | $0.002 |
| 6 h ago | Amount "0.002" is not in atomic token units | 402 | 227 ms | $0.002 |
| 10 h ago | Amount "0.002" is not in atomic token units | 402 | 80 ms | $0.002 |
| 14 h ago | Amount "0.002" is not in atomic token units | 402 | 80 ms | $0.002 |
| 19 h ago | Amount "0.002" is not in atomic token units | 402 | 88 ms | $0.002 |
| 23 h ago | Amount "0.002" is not in atomic token units | 402 | 93 ms | $0.002 |
| 27 h ago | Amount "0.002" is not in atomic token units | 402 | 76 ms | $0.002 |
| 31 h ago | Amount "0.002" is not in atomic token units | 402 | 84 ms | $0.002 |
| 34 h ago | Amount "0.002" is not in atomic token units | 402 | 81 ms | $0.002 |
| 39 h ago | Amount "0.002" is not in atomic token units | 402 | 92 ms | $0.002 |
| 43 h ago | Amount "0.002" is not in atomic token units | 402 | 104 ms | $0.002 |
| 2 days ago | Amount "0.002" is not in atomic token units | 402 | 76 ms | $0.002 |
| 2 days ago | Amount "0.002" is not in atomic token units | 402 | 78 ms | $0.002 |
| 2 days ago | Amount "0.002" is not in atomic token units | 402 | 98 ms | $0.002 |
| 2 days ago | Amount "0.002" is not in atomic token units | 402 | 88 ms | $0.002 |