I have a flow context variable that contains an array of objects. Each object has a a key/value pair with key "on" and a boolean value:
{"seg": [
{"id": 0, "on": true},
{"id": 1, "on": true},
{"id": 2, "on": true}
]}
I'm trying to use a Change node to set the "on" value to "false" for every object in the array.
Is it possible to use the Change node to update all values for "on" keys in one go? Maybe with a JSONata expression? Or will I need to create a function with a for loop to do this?