Javascript how to parse JSON array
Javascript has a built in JSON parse for strings, which I think is what you have: var myObject = JSON.parse(“my json string”); to use this with your example would be: var jsonData = JSON.parse(myMessage); for (var i = 0; i < jsonData.counters.length; i++) { var counter = jsonData.counters[i]; console.log(counter.counter_name); } Here is a working example … Read more