ToolAssay

Repair malformed JSON (trailing commas, single quotes, unquoted keys, code fence

Repair malformed JSON (trailing commas, single quotes, unquoted keys, code fences, truncated output) and optionally validate the result against a supplied JSON Schema. Returns the parsed value, the canonical text, a change log and validation errors.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
41 msmedian answer time
$0.003listed price per call
$0.003price 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://x402.fenixfoundry.com/repair-json

CategoryCode and developer
Provider hostx402.fenixfoundry.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days3 from 2 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.003 366 ms
2026-11-25 valid payment request 402$0.003 20 ms
2026-11-24 valid payment request 402$0.003 41 ms
2026-11-23 valid payment request 402$0.003 379 ms
2026-11-22 valid payment request 402$0.003 33 ms
2026-11-21 valid payment request 402$0.003 409 ms
2026-11-20 valid payment request 402$0.003 30 ms
2026-11-19 valid payment request 402$0.003 367 ms
2026-11-18 valid payment request 402$0.003 446 ms
2026-11-17 valid payment request 402$0.003 370 ms
2026-11-16 valid payment request 402$0.003 33 ms
2026-11-15 valid payment request 402$0.003 450 ms
2026-11-14 valid payment request 402$0.003 428 ms
2026-11-13 valid payment request 402$0.003 821 ms
2026-11-12 valid payment request 402$0.003 450 ms
2026-11-11 valid payment request 402$0.003 38 ms
2026-11-10 valid payment request 402$0.003 364 ms
2026-11-09 valid payment request 402$0.003 498 ms
2026-11-08 valid payment request 402$0.003 454 ms
2026-11-07 valid payment request 402$0.003 438 ms
2026-11-06 valid payment request 402$0.003 452 ms
2026-11-05 valid payment request 402$0.003 519 ms
2026-11-04 valid payment request 402$0.003 29 ms
2026-11-03 valid payment request 402$0.003 399 ms
2026-11-02 valid payment request 402$0.003 489 ms
2026-11-01 valid payment request 402$0.003 26 ms
2026-10-31 valid payment request 402$0.003 370 ms
2026-10-29 valid payment request 402$0.003 46 ms

Example input (from the provider)

{
  "body": {
    "input": "```json\n{name: \"ada\", tags: [\"math\", \"code\",]}\n```",
    "schema": {
      "properties": {
        "name": {
          "type": "string"
        },
        "tags": {
          "type": "array"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    }
  },
  "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": {
          "additionalProperties": false,
          "properties": {
            "input": {
              "description": "Malformed JSON text \u2014 trailing commas, single quotes, unquoted keys, markdown code fences, truncated output, etc.",
              "type": "string"
            },
            "schema": {
              "description": "Optional JSON Schema (draft 2020-12) to validate the repaired value against.",
              "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": {
            "changed": {
              "type": "boolean"
            },
            "changes": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "errors": {
              "items": {
                "type": "object"
              },
              "type": "array"
            },
            "repaired": {},
            "repairedText": {
              "type": "string"
            },
            "valid": {
              "type": "boolean"
            }
          },
          "required": [
            "repaired",
            "repairedText",
            "changes"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON