Turn almost-JSON into valid JSON in one call
Turn almost-JSON into valid JSON in one call. Fixes what LLMs and humans break: markdown ```json fences, leading/trailing chatter, // and /* */ comments, single or smart quotes, unquoted keys and values, trailing or missing commas, Python True/False/None, NaN/undefined, hex and +/.5 numbers, raw newlines in strings, and TRUNCATED output (closes open strings, arrays and objects). Returns the parsed data, the compact JSON string and the list of fixes applied. Valid JSON passes
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agents.204-168-199-108.sslip.io/v1/util/json-repair
| Category | Code and developer |
|---|---|
| Provider host | agents.204-168-199-108.sslip.io |
| Networks | aws:base, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-12-02 | valid payment request | 402 | $0.001 | 964 ms |
| 2026-11-30 | valid payment request | 402 | $0.001 | 965 ms |
| 2026-11-29 | valid payment request | 402 | $0.001 | 959 ms |
| 2026-11-28 | valid payment request | 402 | $0.001 | 936 ms |
| 2026-11-27 | valid payment request | 402 | $0.001 | 1028 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"text": "Sure! Here is the data:\n```json\n{name: 'Acme', \"tags\": [\"ai\", \"x402\",], active: True, // verified\n \"score\": .95, \"notes\": \"cut off her"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"text": {
"description": "Broken or almost-JSON text (max 1 MB), e.g. raw LLM output",
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}