I have a router that is exposing some statistical data via Webhook.
The JSON output looks like this:
"Status": {
"Uptime": "100138",
"Memory": "86",
"CPU": "3",
"WAN1_status": "UP",
"WAN1_IP": "redacted",
"WAN1_tx(Bytes)": "312790",
"WAN1_tx_packets(Counts)": "890494",
"WAN1_tx_rate(bps)": "363112",
"WAN1_rx(Bytes)": "671908",
"WAN1_rx_packets(Counts)": "1383601",
"WAN1_rx_rate(bps)": "7424768",
"WAN1_sessions(Sessions)": "45",
"WAN2_status": "UP",
"WAN2_IP": "redacted",
.......
While I can read WAN1_status without any problem via
{{trigger.json.Status.WAN1_status}}
I could not find any way to read any of the Values containing Brackets in the name, such as WAN1_tx_rate(bps).
Any attempt via
{{trigger.json.Status.WAN1_tx_rate(bps)}}
comes back empty.
I suspect I need to somehow esacpe the “(” and “)” characters but all attempts based on internet research failed so far.
Does anyone know how to escape these brackets?
My only other option would be to parse the entire “Status” block and text-split my way through it, but I would like to avoid that if I can.
Thanks!