{
  "slug": "xml-to-json",
  "name": "gizza-ai/xml-to-json",
  "version": "0.1.0",
  "title": "XML to JSON — Convert XML to JSON online — gizza.ai",
  "description": "Convert an XML document into an equivalent JSON structure, preserving attributes and nesting, in your browser. Free, private, no upload.",
  "tags": [
    "xml to json",
    "xml json converter",
    "convert xml to json",
    "xml parser",
    "xml to json online"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/xml-to-json/",
    "markdown": "https://gizza.ai/tools/xml-to-json/index.md",
    "descriptor": "https://gizza.ai/tools/xml-to-json/tool.json",
    "deep_link_example": "https://gizza.ai/tools/xml-to-json/?xml=%3Ccatalog%3E%0A%20%20%3Cbook%20id%3D%221%22%3E%3Ctitle%3EDune%3C%2Ftitle%3E%3Cauthor%3EHerbert%3C%2Fauthor%3E%3C%2Fbook%3E%0A%20%20%3Cbook%20id%3D%222%22%3E%3Ctitle%3EHyperion%3C%2Ftitle%3E%3Cauthor%3ESimmons%3C%2Fauthor%3E%3C%2Fbook%3E%0A%3C%2Fcatalog%3E&attribute_prefix=%40&text_key=%23text&attributes=true&coerce_types=true"
  },
  "cli": "gizza tool xml-to-json '<catalog>\n  <book id=\"1\"><title>Dune</title><author>Herbert</author></book>\n  <book id=\"2\"><title>Hyperion</title><author>Simmons</author></book>\n</catalog>'",
  "tool": {
    "description": "Convert an XML document into an equivalent JSON structure, preserving attributes and nesting.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "attribute_prefix": {
          "default": "@",
          "type": "string"
        },
        "attributes": {
          "default": true,
          "type": "boolean"
        },
        "coerce_types": {
          "default": false,
          "type": "boolean"
        },
        "text_key": {
          "default": "#text",
          "type": "string"
        },
        "xml": {
          "type": "string"
        }
      },
      "required": [
        "xml"
      ],
      "type": "object"
    }
  }
}