{
  "slug": "json-yaml-converter",
  "name": "gizza-ai/json-yaml-converter",
  "version": "0.1.0",
  "title": "JSON ⇄ YAML Converter Online — gizza.ai",
  "description": "Convert between JSON and YAML in either direction, right in your browser. Auto-detects the input format. Nothing is uploaded, free.",
  "tags": [
    "json to yaml",
    "yaml to json",
    "json yaml converter",
    "yaml convert",
    "config converter"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/json-yaml-converter/",
    "markdown": "https://gizza.ai/tools/json-yaml-converter/index.md",
    "descriptor": "https://gizza.ai/tools/json-yaml-converter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/json-yaml-converter/?input=%7B%20%22name%22%3A%20%22Ada%22%20%7D%20%20%20or%20%20%20name%3A%20Ada&direction=auto&pretty=true"
  },
  "cli": "gizza tool json-yaml-converter '{ \"name\": \"Ada\" }   or   name: Ada'",
  "tool": {
    "description": "Convert between JSON and YAML in either direction. direction='auto' (default) detects the input (text starting with '{' or '[' is JSON -> YAML, otherwise YAML -> JSON); set 'json-to-yaml' or 'yaml-to-json' to force it. pretty=true indents JSON output (yaml-to-json only). Data is preserved round-trip.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "direction": {
          "default": "auto",
          "description": "Conversion direction. 'auto' (default): input starting with '{' or '[' is treated as JSON (-> YAML), otherwise YAML (-> JSON).",
          "enum": [
            "auto",
            "json-to-yaml",
            "yaml-to-json"
          ],
          "type": "string"
        },
        "input": {
          "description": "The JSON or YAML text to convert.",
          "type": "string"
        },
        "pretty": {
          "default": false,
          "description": "Pretty-print (indent) JSON output. Only affects yaml-to-json. Default false.",
          "type": "boolean"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}