Repair malformed JSON into valid JSON — fixes code fences, trailing commas, sing
Repair malformed JSON into valid JSON — fixes code fences, trailing commas, single quotes, unquoted keys, bad escapes, duplicate keys, truncation, and JSON buried in prose. A deterministic tokenizer runs first (no LLM cost), with an optional Haiku fallback, plus optional schema validation and type coercion — so agents can rescue broken model output or dirty data in one call.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
927 msmedian answer time
$0.02listed price per call
$0.02price it asked us
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
POST https://netintel.dev/json/repair
| Category | Code and developer |
|---|---|
| Provider host | netintel.dev |
| Networks | 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-09-24 | valid payment request | 402 | $0.02 | 927 ms |
Example input (from the provider)
{
"body": {
"input": "```json\n{'name': 'acme', 'ports': [80, 443,],}\n```"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"allow_llm": {
"description": "Default true. When false, deterministic-only: if the tokenizer cannot fix the input, repair_succeeded is false (still a 200).",
"type": "boolean"
},
"coerce": {
"description": "Default false. With a schema supplied, coerce values to the declared types where lossless (\"5\" \u2192 5, \"yes\" \u2192 true).",
"type": "boolean"
},
"input": {
"description": "The malformed JSON, as a string. May include markdown code fences or surrounding prose. Max 100KB.",
"type": "string"
},
"schema": {
"description": "Optional. Validate the repaired JSON against this schema. Accepts a flat field\u2192type map ({\"n\":\"number\"}) or a JSON-Schema-shaped object ({\"type\":\"object\",\"properties\":{...},\"required\":[...]}). Types: string, number, integer, boolean, object, array, null.",
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"changes": {
"type": "array"
},
"confidence": {
"type": "number"
},
"findings": {
"type": "array"
},
"grade": {
"type": "string"
},
"method": {
"type": "string"
},
"repair_succeeded": {
"type": "boolean"
},
"repaired": {
"type": [
"object",
"array",
"null"
]
},
"schema_valid": {
"type": [
"boolean",
"null"
]
},
"score": {
"type": "number"
},
"validation_errors": {
"type": "array"
},
"warnings": {
"type": "array"
},
"was_valid": {
"type": "boolean"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}