{
  "x402Version": 2,
  "id": 27076,
  "slug": "27076",
  "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",
  "serviceName": "JSON Repair",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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": [
    "json",
    "repair",
    "llm-outputs",
    "parsing",
    "malformed",
    "bazaar"
  ],
  "sourceHost": "keyronne.com",
  "lastUpdated": "2026-10-08T16:08:22.864Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T16:08:22.595Z"
  },
  "metadata": {
    "serviceName": "JSON Repair",
    "extensions": {
      "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "repairs": [
      "string"
    ],
    "value": null
  }
}