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 LLM or invented data; every applied transformation is reported.
5000 (raw units)
price
17
calls / 30d
7
unique payers
2026-09-17
updated
Provider
agent.atinamos.co.uk · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x105bc7a04eec0c162342874110084dfe01996435",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"json": "{foo: 'bar', broken: true,}",
"mode": "repair"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"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
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"json": {
"description": "JSON or JSON-like text to validate or conservatively repair. Supported repairs include unquoted object keys, single-quoted strings, trailing commas, Markdown fences, UTF-8 BOMs and JSON-compatible Python literals.",
"maxLength": 262144,
"type": "string"
},
"mode": {
"default": "repair",
"enum": [
"validate",
"repair"
],
"type": "string"
}
},
"required": [
"json"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"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"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
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 paid
JavaScript
const 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
}Python
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 headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5536.json, and this resource appears in /discovery/resources and /discovery/search.