I'm trying to interrogate a Ruckus smartzone controller via the API from zabbix. I've got the calls working and have a list of the zones. The data returned is of format similar to below after JSON.stringify
[{"id":"long-zone-id","name":"Zone1"},{"id":"long-zone-id2","name":"Zone2"}]
I'd like to loop through this structure inserting an extra item into each section. So far I've tried for in loop and it's not done any changes. I've tried forEach with same result. How's the best way to achieve this?
[{"id":"long-zone-id","name":"Zone1"},{"id":"long-zone-id2","name":"Zone2"}]
I'd like to loop through this structure inserting an extra item into each section. So far I've tried for in loop and it's not done any changes. I've tried forEach with same result. How's the best way to achieve this?
Comment