{
  "x402Version": 2,
  "id": 809,
  "slug": "809",
  "resource": "https://keyronne.com/api/json-repair",
  "description": "Repair malformed JSON text into valid parsed JSON: markdown code fences, single quotes, smart quotes, unquoted keys, trailing commas, comments, Python literals (True/None), raw newlines in strings, and truncated output (auto-closes strings, arrays and objects). Returns the parsed value plus a log of every repair applied. Built for LLM output that almost parses. POST a JSON body like: {\"text\":\"```json\\n{name: 'Ada', age: 36, tags: ['x',], active: True\"}",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "text": "```json\n{name: 'Ada', age: 36, tags: ['x',], active: True"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "repairs": [
              "removed markdown code fence",
              "quoted unquoted object key",
              "converted single-quoted string to double quotes",
              "removed trailing comma",
              "normalized True to true",
              "closed unbalanced object (input looks truncated)"
            ],
            "value": {
              "active": true,
              "age": 36,
              "name": "Ada",
              "tags": [
                "x"
              ]
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "properties": {
              "body": {
                "properties": {
                  "text": {
                    "description": "The malformed JSON text to repair.",
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "type": "object"
          },
          "output": {
            "properties": {
              "repairs": {
                "description": "Human-readable list of repairs applied (empty if input was valid).",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "value": {
                "description": "The repaired, parsed JSON value."
              }
            },
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "keyronne.com",
  "lastUpdated": "2026-09-09T09:35:39.865Z",
  "quality": {
    "calls30d": 13,
    "uniquePayers30d": 11,
    "lastCalledAt": "2026-09-09T09:35:39.584Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "keyronne.com",
    "manifest_name": "keyronne.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}