# JSONata is true but switch node will not pass msg through

**URL:** <https://discourse.nodered.org/t/jsonata-is-true-but-switch-node-will-not-pass-msg-through/79855>\
**Category:** General\
**Created:** [15 July 2023 22:57 UTC](https://discourse.nodered.org/t/jsonata-is-true-but-switch-node-will-not-pass-msg-through/79855 "2023-07-15T22:57:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjzy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bjzy](https://discourse.nodered.org/u/bjzy)\
**Post date:** [15 July 2023 22:57 UTC](https://discourse.nodered.org/t/jsonata-is-true-but-switch-node-will-not-pass-msg-through/79855/1 "2023-07-15T22:57:07Z")

</div>

Hi -

I'm new to Node-RED and am trying to use JSONata in a Switch node to route my msg.payload. I found [this](https://discourse.nodered.org/t/search-array-continue-if-string-is-found/65127/2) in my search and attempted to replicate it for my data. Though the JSONata Test reports True, my payload goes no further. The JSON is a [vm\_info including tags created by Ansible.](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_vm_info_module.html).

My attempt to replicate the example in the linked post with **JSONata in the Property field** :

```auto
true in tags[*].$contains($.name, "AnsibleManaged")

```

ref: [JSONata Exerciser](https://try.jsonata.org/lvqbvBrEG)

Additionally, I have tried the following syntax as a **JSONata rule** :

```auto
"AnsibleManaged" in tags.name

```

ref: [JSONata Exerciser](https://try.jsonata.org/VJaaLCtqs)

**and**

```auto
true in tags[*].$contains($.name, "AnsibleManaged")

```

... these both evaluate to True and pass the test against my JSON.

I'm obviously not doing something correctly here and would appreciate any help. Thanks!

```auto
[{"id":"c82f6541f05e4529","type":"tab","label":"Debug with Functions","disabled":false,"info":"","env":[]},{"id":"b5ec2a3d5867fecd","type":"inject","z":"c82f6541f05e4529","name":"Send Test vm_info Payload","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"guest_name\":\"DebugNode-RED\",\"guest_fullname\":\"Ubuntu Linux (64-bit)\",\"power_state\":\"poweredOn\",\"ip_address\":\"192.168.50.254\",\"mac_address\":[\"00:50:54:87:bc:74\"],\"uuid\":\"4207b810-fc10-a2ad-dd5d-ced4ba83d953\",\"vm_network\":{\"00:50:56:87:bc:74\":{\"ipv4\":[\"192.168.50.254\"],\"ipv6\":[\"fe80::250:54ff:fe87:bc74\"]}},\"esxi_hostname\":\"massstorage.homelab.bjzy.me\",\"datacenter\":\"Home Lab Datacenter\",\"cluster\":\"Home Lab CL1\",\"resource_pool\":null,\"attributes\":{},\"tags\":[{\"id\":\"urn:vmomi:InventoryServiceTag:1c7ec29c-cfcf-4e81-8bc5-043505a73616:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"AnsibleManaged\",\"description\":\"Ansible is used to configure this resource\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:0fb3a150-093d-4415-9465-ceacce0f28e1:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"Terraform\",\"description\":\"Indicates VM was created and state is managed by Terraform.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:f4360074-ff82-46f2-b7da-6fe1bd91defa:GLOBAL\",\"category_name\":\"Environment\",\"name\":\"Development\",\"description\":\"Formal Dev environment. Build and implement here first.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:a968e543-f640-4f6e-a9ee-cd3c5bc234ee:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:52b62f3e-ca99-4416-ab0f-da6b4eca462d:GLOBAL\",\"category_name\":\"Monitoring\",\"name\":\"bootNotify\",\"description\":\"Host should send an alert on boot. This tag will trigger bootNotify install.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:6cd83cd3-adfd-4247-8776-322a5ff233ff:GLOBAL\"}],\"folder\":\"/Home Lab Datacenter/vm\",\"moid\":\"vm-25928\",\"datastore_url\":[{\"name\":\"NVMe-c\",\"url\":\"/vmfs/volumes/60bd10bb-fe1c3d76-e39d-0cc47a172710\"}],\"allocated\":{}}","payloadType":"json","x":230,"y":180,"wires":[["f43467b9f14d281b"]]},{"id":"f43467b9f14d281b","type":"switch","z":"c82f6541f05e4529","name":"Tag Flow Control [JSONata Function Rule]","property":"payload","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"true in tags[*].$contains($.name, \"AnsibleManaged\")","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":180,"wires":[["044e3cebb1590862"]]},{"id":"044e3cebb1590862","type":"debug","z":"c82f6541f05e4529","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":180,"wires":[]},{"id":"69a0012070b5be7f","type":"inject","z":"c82f6541f05e4529","name":"Send Test vm_info Payload","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"guest_name\":\"DebugNode-RED\",\"guest_fullname\":\"Ubuntu Linux (64-bit)\",\"power_state\":\"poweredOn\",\"ip_address\":\"192.168.50.254\",\"mac_address\":[\"00:50:54:87:bc:74\"],\"uuid\":\"4207b810-fc10-a2ad-dd5d-ced4ba83d953\",\"vm_network\":{\"00:50:56:87:bc:74\":{\"ipv4\":[\"192.168.50.254\"],\"ipv6\":[\"fe80::250:54ff:fe87:bc74\"]}},\"esxi_hostname\":\"massstorage.homelab.bjzy.me\",\"datacenter\":\"Home Lab Datacenter\",\"cluster\":\"Home Lab CL1\",\"resource_pool\":null,\"attributes\":{},\"tags\":[{\"id\":\"urn:vmomi:InventoryServiceTag:1c7ec29c-cfcf-4e81-8bc5-043505a73616:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"AnsibleManaged\",\"description\":\"Ansible is used to configure this resource\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:0fb3a150-093d-4415-9465-ceacce0f28e1:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"Terraform\",\"description\":\"Indicates VM was created and state is managed by Terraform.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:f4360074-ff82-46f2-b7da-6fe1bd91defa:GLOBAL\",\"category_name\":\"Environment\",\"name\":\"Development\",\"description\":\"Formal Dev environment. Build and implement here first.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:a968e543-f640-4f6e-a9ee-cd3c5bc234ee:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:52b62f3e-ca99-4416-ab0f-da6b4eca462d:GLOBAL\",\"category_name\":\"Monitoring\",\"name\":\"bootNotify\",\"description\":\"Host should send an alert on boot. This tag will trigger bootNotify install.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:6cd83cd3-adfd-4247-8776-322a5ff233ff:GLOBAL\"}],\"folder\":\"/Home Lab Datacenter/vm\",\"moid\":\"vm-25928\",\"datastore_url\":[{\"name\":\"NVMe-c\",\"url\":\"/vmfs/volumes/60bd10bb-fe1c3d76-e39d-0cc47a172710\"}],\"allocated\":{}}","payloadType":"json","x":230,"y":280,"wires":[["647ed971a5cc398e"]]},{"id":"647ed971a5cc398e","type":"switch","z":"c82f6541f05e4529","name":"Tag Flow Control [JSONata Property]","property":"true in tags[*].$contains($.name, \"AnsibleManaged\")","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":550,"y":280,"wires":[["92992e64d5c23f3b"]]},{"id":"92992e64d5c23f3b","type":"debug","z":"c82f6541f05e4529","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":870,"y":280,"wires":[]},{"id":"a7b171a4741c25fb","type":"inject","z":"c82f6541f05e4529","name":"Send Test vm_info Payload","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"guest_name\":\"DebugNode-RED\",\"guest_fullname\":\"Ubuntu Linux (64-bit)\",\"power_state\":\"poweredOn\",\"ip_address\":\"192.168.50.254\",\"mac_address\":[\"00:50:54:87:bc:74\"],\"uuid\":\"4207b810-fc10-a2ad-dd5d-ced4ba83d953\",\"vm_network\":{\"00:50:56:87:bc:74\":{\"ipv4\":[\"192.168.50.254\"],\"ipv6\":[\"fe80::250:54ff:fe87:bc74\"]}},\"esxi_hostname\":\"massstorage.homelab.bjzy.me\",\"datacenter\":\"Home Lab Datacenter\",\"cluster\":\"Home Lab CL1\",\"resource_pool\":null,\"attributes\":{},\"tags\":[{\"id\":\"urn:vmomi:InventoryServiceTag:1c7ec29c-cfcf-4e81-8bc5-043505a73616:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"AnsibleManaged\",\"description\":\"Ansible is used to configure this resource\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:0fb3a150-093d-4415-9465-ceacce0f28e1:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"Terraform\",\"description\":\"Indicates VM was created and state is managed by Terraform.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:f4360074-ff82-46f2-b7da-6fe1bd91defa:GLOBAL\",\"category_name\":\"Environment\",\"name\":\"Development\",\"description\":\"Formal Dev environment. Build and implement here first.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:a968e543-f640-4f6e-a9ee-cd3c5bc234ee:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:52b62f3e-ca99-4416-ab0f-da6b4eca462d:GLOBAL\",\"category_name\":\"Monitoring\",\"name\":\"bootNotify\",\"description\":\"Host should send an alert on boot. This tag will trigger bootNotify install.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:6cd83cd3-adfd-4247-8776-322a5ff233ff:GLOBAL\"}],\"folder\":\"/Home Lab Datacenter/vm\",\"moid\":\"vm-25928\",\"datastore_url\":[{\"name\":\"NVMe-c\",\"url\":\"/vmfs/volumes/60bd10bb-fe1c3d76-e39d-0cc47a172710\"}],\"allocated\":{}}","payloadType":"json","x":210,"y":380,"wires":[["4f6f79d376800ade"]]},{"id":"4f6f79d376800ade","type":"switch","z":"c82f6541f05e4529","name":"Tag Flow Control [JSONata Rule w/o Functions]","property":"payload","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"\"AnsibleManaged\" in tags.name","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":380,"wires":[["655916a4baf08d8b"]]},{"id":"655916a4baf08d8b","type":"debug","z":"c82f6541f05e4529","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":380,"wires":[]}]

```

```auto
{
    "guest_name": "DebugNode-RED",
    "guest_fullname": "Ubuntu Linux (64-bit)",
    "power_state": "poweredOn",
    "ip_address": "192.168.50.254",
    "mac_address": [
        "00:50:54:87:bc:74"
    ],
    "uuid": "4207b810-fc10-a2ad-dd5d-ced4ba83d953",
    "vm_network": {
        "00:50:56:87:bc:74": {
            "ipv4": [
                "192.168.50.254"
            ],
            "ipv6": [
                "fe80::250:54ff:fe87:bc74"
            ]
        }
    },
    "esxi_hostname": "massstorage.homelab.bjzy.me",
    "datacenter": "Home Lab Datacenter",
    "cluster": "Home Lab CL1",
    "resource_pool": null,
    "attributes": {},
    "tags": [
        {
            "id": "urn:vmomi:InventoryServiceTag:1c7ec29c-cfcf-4e81-8bc5-043505a73616:GLOBAL",
            "category_name": "Automation",
            "name": "AnsibleManaged",
            "description": "Ansible is used to configure this resource",
            "category_id": "urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL"
        },
        {
            "id": "urn:vmomi:InventoryServiceTag:0fb3a150-093d-4415-9465-ceacce0f28e1:GLOBAL",
            "category_name": "Automation",
            "name": "Terraform",
            "description": "Indicates VM was created and state is managed by Terraform.",
            "category_id": "urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL"
        },
        {
            "id": "urn:vmomi:InventoryServiceTag:f4360074-ff82-46f2-b7da-6fe1bd91defa:GLOBAL",
            "category_name": "Environment",
            "name": "Development",
            "description": "Formal Dev environment. Build and implement here first.",
            "category_id": "urn:vmomi:InventoryServiceCategory:a968e543-f640-4f6e-a9ee-cd3c5bc234ee:GLOBAL"
        },
        {
            "id": "urn:vmomi:InventoryServiceTag:52b62f3e-ca99-4416-ab0f-da6b4eca462d:GLOBAL",
            "category_name": "Monitoring",
            "name": "bootNotify",
            "description": "Host should send an alert on boot. This tag will trigger bootNotify install.",
            "category_id": "urn:vmomi:InventoryServiceCategory:6cd83cd3-adfd-4247-8776-322a5ff233ff:GLOBAL"
        }
    ],
    "folder": "/Home Lab Datacenter/vm",
    "moid": "vm-25928",
    "datastore_url": [
        {
            "name": "NVMe-c",
            "url": "/vmfs/volumes/60bd10bb-fe1c3d76-e39d-0cc47a172710"
        }
    ],
    "allocated": {}
}

```

 ![Screenshot 2023-07-15 at 4.09.53 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/3/23319b61692596cdba82bec1d3b6be5141cba723.png)

cc @ [E1cid](https://discourse.nodered.org/u/E1cid)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 July 2023 23:27 UTC](https://discourse.nodered.org/t/jsonata-is-true-but-switch-node-will-not-pass-msg-through/79855/2 "2023-07-15T23:27:52Z")

</div>

Your array is in `payload.tags`  
So would need to append payload to your expressions, or use [wildcards `*` or descendants `**`](https://docs.jsonata.org/path-operators)

```auto
[{"id":"b5ec2a3d5867fecd","type":"inject","z":"c82f6541f05e4529","name":"Send Test vm_info Payload","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"guest_name\":\"DebugNode-RED\",\"guest_fullname\":\"Ubuntu Linux (64-bit)\",\"power_state\":\"poweredOn\",\"ip_address\":\"192.168.50.254\",\"mac_address\":[\"00:50:54:87:bc:74\"],\"uuid\":\"4207b810-fc10-a2ad-dd5d-ced4ba83d953\",\"vm_network\":{\"00:50:56:87:bc:74\":{\"ipv4\":[\"192.168.50.254\"],\"ipv6\":[\"fe80::250:54ff:fe87:bc74\"]}},\"esxi_hostname\":\"massstorage.homelab.bjzy.me\",\"datacenter\":\"Home Lab Datacenter\",\"cluster\":\"Home Lab CL1\",\"resource_pool\":null,\"attributes\":{},\"tags\":[{\"id\":\"urn:vmomi:InventoryServiceTag:1c7ec29c-cfcf-4e81-8bc5-043505a73616:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"AnsibleManaged\",\"description\":\"Ansible is used to configure this resource\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:0fb3a150-093d-4415-9465-ceacce0f28e1:GLOBAL\",\"category_name\":\"Automation\",\"name\":\"Terraform\",\"description\":\"Indicates VM was created and state is managed by Terraform.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:f4360074-ff82-46f2-b7da-6fe1bd91defa:GLOBAL\",\"category_name\":\"Environment\",\"name\":\"Development\",\"description\":\"Formal Dev environment. Build and implement here first.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:a968e543-f640-4f6e-a9ee-cd3c5bc234ee:GLOBAL\"},{\"id\":\"urn:vmomi:InventoryServiceTag:52b62f3e-ca99-4416-ab0f-da6b4eca462d:GLOBAL\",\"category_name\":\"Monitoring\",\"name\":\"bootNotify\",\"description\":\"Host should send an alert on boot. This tag will trigger bootNotify install.\",\"category_id\":\"urn:vmomi:InventoryServiceCategory:6cd83cd3-adfd-4247-8776-322a5ff233ff:GLOBAL\"}],\"folder\":\"/Home Lab Datacenter/vm\",\"moid\":\"vm-25928\",\"datastore_url\":[{\"name\":\"NVMe-c\",\"url\":\"/vmfs/volumes/60bd10bb-fe1c3d76-e39d-0cc47a172710\"}],\"allocated\":{}}","payloadType":"json","x":230,"y":180,"wires":[["f43467b9f14d281b","785ea0b8cbe9af91","4f6f79d376800ade"]]},{"id":"f43467b9f14d281b","type":"switch","z":"c82f6541f05e4529","name":"Tag Flow Control [JSONata Function Rule]","property":"true in *.tags.$contains($.name, \"AnsibleManaged\")","propertyType":"jsonata","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":180,"wires":[["044e3cebb1590862"]]},{"id":"785ea0b8cbe9af91","type":"switch","z":"c82f6541f05e4529","name":"Tag Flow Control [JSONata Function Rule]","property":"payload","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"true in $$.payload.tags.$contains($.name, \"AnsibleManaged\")","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":580,"y":260,"wires":[["31608d77844d3ea0"]]},{"id":"4f6f79d376800ade","type":"switch","z":"c82f6541f05e4529","name":"Tag Flow Control [JSONata Rule w/o Functions]","property":"payload","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"\"AnsibleManaged\" in $$.payload.tags.name","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":380,"wires":[["655916a4baf08d8b"]]},{"id":"044e3cebb1590862","type":"debug","z":"c82f6541f05e4529","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":180,"wires":[]},{"id":"31608d77844d3ea0","type":"debug","z":"c82f6541f05e4529","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":280,"wires":[]},{"id":"655916a4baf08d8b","type":"debug","z":"c82f6541f05e4529","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":380,"wires":[]}]

```

p.s. Love the full info and examples provided

[edit]  
Your jsonata exerciser is missing the payload element to  
should be

```auto
{
  "payload": {
    "allocated": {},
    "attributes": {},
    "cluster": "Home Lab CL1",
    "datacenter": "Home Lab Datacenter",
    "datastore_url": [
      {
        "name": "NVMe-c",
        "url": "/vmfs/volumes/60bd10bb-fe1c3d76-e39d-0cc47a172710"
      }
    ],
    "esxi_hostname": "massstorage.homelab.bjzy.me",
    "folder": "/Home Lab Datacenter/vm",
    "guest_fullname": "Ubuntu Linux (64-bit)",
    "guest_name": "DebugNode-RED",
    "ip_address": "192.168.50.254",
    "mac_address": [
      "00:50:54:87:bc:74"
    ],
    "moid": "vm-25928",
    "power_state": "poweredOn",
    "resource_pool": null,
    "tags": [
      {
        "category_id": "urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL",
        "category_name": "Automation",
        "description": "Ansible is used to configure this resource",
        "id": "urn:vmomi:InventoryServiceTag:1c7ec29c-cfcf-4e81-8bc5-043505a73616:GLOBAL",
        "name": "AnsibleManaged"
      },
      {
        "category_id": "urn:vmomi:InventoryServiceCategory:dcf78d63-1f5b-412f-87e6-35c17fe7e363:GLOBAL",
        "category_name": "Automation",
        "description": "Indicates VM was created and state is managed by Terraform.",
        "id": "urn:vmomi:InventoryServiceTag:0fb3a150-093d-4415-9465-ceacce0f28e1:GLOBAL",
        "name": "Terraform"
      },
      {
        "category_id": "urn:vmomi:InventoryServiceCategory:a968e543-f640-4f6e-a9ee-cd3c5bc234ee:GLOBAL",
        "category_name": "Environment",
        "description": "Formal Dev environment. Build and implement here first.",
        "id": "urn:vmomi:InventoryServiceTag:f4360074-ff82-46f2-b7da-6fe1bd91defa:GLOBAL",
        "name": "Development"
      },
      {
        "category_id": "urn:vmomi:InventoryServiceCategory:6cd83cd3-adfd-4247-8776-322a5ff233ff:GLOBAL",
        "category_name": "Monitoring",
        "description": "Host should send an alert on boot. This tag will trigger bootNotify install.",
        "id": "urn:vmomi:InventoryServiceTag:52b62f3e-ca99-4416-ab0f-da6b4eca462d:GLOBAL",
        "name": "bootNotify"
      }
    ],
    "uuid": "4207b810-fc10-a2ad-dd5d-ced4ba83d953",
    "vm_network": {
      "00:50:56:87:bc:74": {
        "ipv4": [
          "192.168.50.254"
        ],
        "ipv6": [
          "fe80::250:54ff:fe87:bc74"
        ]
      }
    }
  }
}

```

Then your inject nodes will match the exerciser objects.

---

<div class="post-metadata">

**Author:** ![bjzy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bjzy](https://discourse.nodered.org/u/bjzy)\
**Post date:** [16 July 2023 02:44 UTC](https://discourse.nodered.org/t/jsonata-is-true-but-switch-node-will-not-pass-msg-through/79855/3 "2023-07-16T02:44:29Z")

</div>

Everything is working as expected now. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 July 2023 02:45 UTC](https://discourse.nodered.org/t/jsonata-is-true-but-switch-node-will-not-pass-msg-through/79855/4 "2023-07-30T02:45:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
