{
  "name": "TOON Node Demo - Verification Video",
  "nodes": [
    {
      "parameters": {},
      "id": "7870a467-a3e3-46c0-bd45-70f16ed4a479",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -384,
        48
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "sample-data",
              "name": "sampleData",
              "value": "={{ {\n  \"users\": [\n    {\"id\": 1, \"name\": \"Alice\", \"role\": \"admin\", \"active\": true},\n    {\"id\": 2, \"name\": \"Bob\", \"role\": \"user\", \"active\": true},\n    {\"id\": 3, \"name\": \"Charlie\", \"role\": \"user\", \"active\": false}\n  ],\n  \"metadata\": {\n    \"total\": 3,\n    \"timestamp\": \"2025-01-13T12:00:00Z\"\n  }\n} }}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "id": "35a0304f-81c3-4ce9-84a0-550698b743e5",
      "name": "1. Sample JSON Data",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.3,
      "position": [
        -160,
        -144
      ],
      "notes": "Sample data showing users array and metadata object"
    },
    {
      "parameters": {
        "inputData": "={{ $json }}",
        "outputField": "data",
        "additionalOptions": {
          "includeTokenMetrics": true
        }
      },
      "id": "79d5c699-1a82-47ff-b7f2-0e2f6a833e3e",
      "name": "2a. JSON\u2192TOON (Comma)",
      "type": "@tehw0lf/n8n-nodes-toon.toon",
      "typeVersion": 1,
      "position": [
        64,
        -432
      ],
      "notes": "Convert to TOON with comma delimiter"
    },
    {
      "parameters": {
        "inputData": "={{ $json }}",
        "outputField": "data",
        "additionalOptions": {
          "delimiter": "tab"
        }
      },
      "id": "a23ec5d1-8bc6-4add-93e1-bf4066ea6adf",
      "name": "2b. JSON\u2192TOON (Tab)",
      "type": "@tehw0lf/n8n-nodes-toon.toon",
      "typeVersion": 1,
      "position": [
        64,
        -240
      ],
      "notes": "Same data with tab delimiter"
    },
    {
      "parameters": {
        "inputData": "={{ $json.sampleData.users }}",
        "outputField": "data"
      },
      "id": "ddc5b02e-5294-4eac-9011-dc801276d8ed",
      "name": "2c. Field Mode (users array)",
      "type": "@tehw0lf/n8n-nodes-toon.toon",
      "typeVersion": 1,
      "position": [
        64,
        -48
      ],
      "notes": "Convert only the users array using Field mode with dot notation"
    },
    {
      "parameters": {
        "inputData": "={{ $json.sampleData.users[0] }}",
        "outputField": "data"
      },
      "id": "67027875-6d23-4b41-97f8-f1925616ed04",
      "name": "2d. Field Mode (first user)",
      "type": "@tehw0lf/n8n-nodes-toon.toon",
      "typeVersion": 1,
      "position": [
        64,
        144
      ],
      "notes": "Convert only the first user using Field mode with array index"
    },
    {
      "parameters": {
        "operation": "toonToJson",
        "inputData": "={{ $json.data }}",
        "outputField": "data"
      },
      "id": "ff4550a1-bb34-4708-800a-ff88db1f3100",
      "name": "3. TOON\u2192JSON (Round-trip)",
      "type": "@tehw0lf/n8n-nodes-toon.toon",
      "typeVersion": 1,
      "position": [
        288,
        -432
      ],
      "notes": "Parse TOON back to JSON - should match original"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "nested-data",
              "name": "nestedData",
              "value": "={{ {\n  \"api\": {\n    \"config\": {\n      \"endpoint\": \"https://api.example.com\",\n      \"timeout\": 30\n    }\n  }\n} }}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "id": "fcb87105-fc68-46c0-ae83-be632a6385f3",
      "name": "4. Nested Data Sample",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.3,
      "position": [
        -160,
        336
      ],
      "notes": "Deeply nested object for key folding demo"
    },
    {
      "parameters": {
        "inputData": "={{ $json }}",
        "outputField": "data",
        "additionalOptions": {
          "keyFolding": "safe"
        }
      },
      "id": "56b0f6e4-c85e-4c72-9472-4b2d59f0c01f",
      "name": "5. JSON\u2192TOON (Key Folding)",
      "type": "@tehw0lf/n8n-nodes-toon.toon",
      "typeVersion": 1,
      "position": [
        64,
        336
      ],
      "notes": "Field mode with key folding - creates api.config.endpoint format"
    },
    {
      "parameters": {
        "includeOtherFields": true,
        "include": "selected",
        "includeFields": "tokenMetrics",
        "options": {}
      },
      "id": "6c28204e-cbdb-4a20-b811-5eb282c4468c",
      "name": "6. Token Savings Note",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.3,
      "position": [
        512,
        -432
      ],
      "notes": "Highlight the main use case"
    }
  ],
  "connections": {
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "1. Sample JSON Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "4. Nested Data Sample",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. Sample JSON Data": {
      "main": [
        [
          {
            "node": "2a. JSON\u2192TOON (Comma)",
            "type": "main",
            "index": 0
          },
          {
            "node": "2b. JSON\u2192TOON (Tab)",
            "type": "main",
            "index": 0
          },
          {
            "node": "2c. Field Mode (users array)",
            "type": "main",
            "index": 0
          },
          {
            "node": "2d. Field Mode (first user)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2a. JSON\u2192TOON (Comma)": {
      "main": [
        [
          {
            "node": "3. TOON\u2192JSON (Round-trip)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3. TOON\u2192JSON (Round-trip)": {
      "main": [
        [
          {
            "node": "6. Token Savings Note",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4. Nested Data Sample": {
      "main": [
        [
          {
            "node": "5. JSON\u2192TOON (Key Folding)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1a859438-f8fc-45ec-a7ec-1a7a9ab9c580",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "7nZ11X4m1A1wkuW2",
  "tags": []
}