{
  "slug": "json-repair",
  "name": "gizza-ai/json-repair",
  "version": "0.1.0",
  "title": "JSON Repair — Fix Broken & Malformed JSON — gizza.ai",
  "description": "Fix broken JSON automatically — trailing commas, single quotes, unquoted keys, missing commas, comments, truncated LLM output. Runs in your browser.",
  "tags": [
    "json repair",
    "fix json",
    "broken json",
    "malformed json",
    "json fixer",
    "repair json online",
    "llm json",
    "trailing comma json"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/json-repair/",
    "markdown": "https://gizza.ai/tools/json-repair/index.md",
    "descriptor": "https://gizza.ai/tools/json-repair/tool.json",
    "deep_link_example": "https://gizza.ai/tools/json-repair/?json=%7B%27name%27%3A%20%27John%27%2C%20age%3A%2030%2C%7D&indent=2"
  },
  "cli": "gizza tool json-repair \"{'name': 'John', age: 30,}\"",
  "tool": {
    "description": "Repair broken or malformed JSON into valid JSON. Fixes trailing commas, single/smart quotes, unquoted keys and values, missing commas, // and /* */ comments, Python literals (True/False/None), undefined/NaN/Infinity (to null), raw newlines in strings, markdown ```json fences around LLM output, mismatched brackets, and truncated JSON (unclosed strings/arrays/objects are closed). Key order is preserved; duplicate keys keep the last value; nesting is capped at 200 levels. indent chooses output formatting: 2 or 4 spaces, tab, or minify. Deterministic and syntax-only (no LLM). Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "indent": {
          "default": "2",
          "description": "Output formatting: '2' or '4' spaces of indentation per level, 'tab' for tab indentation, or 'minify' for a single compact line. Default 2.",
          "enum": [
            "2",
            "4",
            "tab",
            "minify"
          ],
          "type": "string"
        },
        "json": {
          "description": "The broken/malformed JSON text to repair. Handles trailing commas, single or smart quotes, unquoted keys and values, missing commas, // and /* */ comments, Python literals (True/False/None), undefined/NaN/Infinity, raw newlines inside strings, markdown ```json fences, mismatched brackets, and truncated output. Example: {'name': 'John', age: 30,}",
          "type": "string"
        }
      },
      "required": [
        "json"
      ],
      "type": "object"
    }
  }
}