{
  "slug": "json-yaml-convert",
  "name": "gizza-ai/json-yaml-convert",
  "version": "0.1.0",
  "title": "JSON ⇄ YAML ⇄ TOML Converter — gizza.ai",
  "description": "Convert config data between JSON, YAML, and TOML in any direction — in your browser. Round-trips through a common model. Nothing is uploaded.",
  "tags": [
    "json to toml",
    "yaml to toml",
    "toml to json",
    "json yaml toml",
    "config converter",
    "toml converter"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/json-yaml-convert/",
    "markdown": "https://gizza.ai/tools/json-yaml-convert/index.md",
    "descriptor": "https://gizza.ai/tools/json-yaml-convert/tool.json",
    "deep_link_example": "https://gizza.ai/tools/json-yaml-convert/?input=%7B%20%22title%22%3A%20%22demo%22%2C%20%22server%22%3A%20%7B%20%22port%22%3A%208080%20%7D%20%7D&from=json&to=json&pretty=true"
  },
  "cli": "gizza tool json-yaml-convert '{ \"title\": \"demo\", \"server\": { \"port\": 8080 } }' 'from=json' 'to=json'",
  "tool": {
    "description": "Convert config data between JSON, YAML, and TOML in any direction. Specify from and to (json/yaml/toml); pretty indents JSON/TOML output (default true). Note: TOML output requires a top-level object and has no null. Round-trips data through a common model. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "from": {
          "description": "Source format of the input.",
          "enum": [
            "json",
            "yaml",
            "toml"
          ],
          "type": "string"
        },
        "input": {
          "description": "The config data to convert.",
          "type": "string"
        },
        "pretty": {
          "default": true,
          "description": "Indent the output (JSON/TOML). Default true.",
          "type": "boolean"
        },
        "to": {
          "description": "Target format to convert to.",
          "enum": [
            "json",
            "yaml",
            "toml"
          ],
          "type": "string"
        }
      },
      "required": [
        "input",
        "from",
        "to"
      ],
      "type": "object"
    }
  }
}