Api Endpoint

NetIntel

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.

Open interactive test console

Offering

Provider
netintel.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://netintel.dev/json/repair
MIME type
Not provided
First seen
2026-10-16T01:50:14.534Z
Last seen
Tags
json repair, fix json, malformed json, data cleaning, json parser

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xdaDc335482AD545296Fd7b28518A251fFCbEb9Df"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "8FVeybWnB4dYrxTuPK7WzFZNAiEcFVaDLFnKpRwVGr5s"
  }
]

Observed health

Status
Healthy
Latest latency
101 ms
Average latency
103 ms
HTTP status
204
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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\" → 5, \"yes\" → 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→type 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 schema

{
  "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"
}