Input objects missing

Hello, I’m trying to access the 3rd object after splitting some strings to make a set. Despite the “split” function pushing three items to the set node, the input data for the set node will only show the first object.

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        -2380,
        80
      ]
    },
    {
      "parameters": {
        "functionCode": "return [{json:\n\n{\n\"voucherNumber\": \"TEST/21-22/987\",\n}\n\n}]"
      },
      "name": "mock data",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        -2200,
        80
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "value": "={{$json.values}}"
            }
          ]
        },
        "options": {}
      },
      "name": "Set of voucher",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        -1800,
        80
      ]
    },
    {
      "parameters": {
        "functionCode": "let myValues = [];\n\nfor (item of items) {\n  myValues.push(...item.json.voucherNumber.split('/'));\n}\n\nreturn myValues.map(e => {\n  return {\n    json: {\n      values: e.trim()\n    }\n  };\n});"
      },
      "name": "split",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        -2020,
        80
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "mock data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "mock data": {
      "main": [
        [
          {
            "node": "split",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "split": {
      "main": [
        [
          {
            "node": "Set of voucher",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

there should be three values, namely, “TEST”, “21-22” and “987” for the set node to work upon, but all it gets is the first value, ie. “TEST”. I suppose there must be something straightforward that I’m missing out on. Any pointers shall be beneficial.

The Variable selector displays only one item, as it is only there to make it easier for the users to create an expression. Please execute your example workflow and you will see that all 3 items get processed: