Deterministic JSON validation and conservative repair for AI-agent payloads
Deterministic JSON validation and conservative repair for AI-agent payloads. Repairs unquoted object keys, single-quoted strings, trailing commas, Markdown code fences, UTF-8 BOMs and JSON-compatible Python literals, including nested or repeated defects. No L…
by agent.atinamos.co.uk · discovered, not yet claimed by its owner · updated 2026-10-09
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Deterministic JSON validation and conservative repair for AI-agent payloads. Repairs unquoted object keys, single-quoted strings, trailing commas, Markdown code fences, UTF-8 BOMs and JSON-compatible Python literals, including nested or repeated defects. No LLM or invented data; every applied transformation is reported.
Tags: json-repair · json-validation · structured-data · payload-repair · agent-utility · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-09
{
"json": "{foo: 'bar', broken: true,}",
"mode": "repair"
}{
"changed": true,
"input_bytes": 27,
"json": "{\"broken\":true,\"foo\":\"bar\"}",
"mode": "repair",
"price_usdc": 0.005,
"repairs": [
"converted_single_quoted_strings",
"quoted_unquoted_object_keys",
"removed_trailing_commas"
],
"result": {
"broken": true,
"foo": "bar"
},
"schema": "atinamos.json-repair.v0.1",
"service": "json-repair",
"status": "repaired",
"valid": true
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/28687.jsonfor the price and payment options. - Pay. Call
GET https://agent.atinamos.co.uk/agent/json-repair. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 4 calls · 4 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0x105bc7a04eec0c162342874110084dfe01996435 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x105bc7a04eec0c162342874110084dfe01996435",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"changed": {
"type": "boolean"
},
"error": {
"type": "object"
},
"input_bytes": {
"type": "integer"
},
"json": {
"type": "string"
},
"mode": {
"enum": [
"validate",
"repair"
],
"type": "string"
},
"price_usdc": {
"const": 0.005,
"type": "number"
},
"repairs": {
"items": {
"type": "string"
},
"type": "array"
},
"result": {},
"schema": {
"type": "string"
},
"service": {
"const": "json-repair",
"type": "string"
},
"status": {
"enum": [
"valid",
"repaired",
"invalid"
],
"type": "string"
},
"valid": {
"type": "boolean"
}
},
"required": [
"service",
"price_usdc",
"schema",
"mode",
"status",
"valid",
"changed",
"repairs",
"input_bytes"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"changed": true,
"error": {},
"input_bytes": 0,
"json": "string",
"mode": "validate",
"price_usdc": 0,
"repairs": [
"string"
],
"result": null,
"schema": "string",
"service": "string",
"status": "valid",
"valid": true
},
"type": "string"
}Examples
curl "https://agent.atinamos.co.uk/agent/json-repair"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://agent.atinamos.co.uk/agent/json-repair");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://agent.atinamos.co.uk/agent/json-repair")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- agent.atinamos.co.uk
- Endpoint
- https://agent.atinamos.co.uk/agent/json-repair
- Machine-readable
/resources/28687.json