I have a JavaScript object array. When write console.log(myarry) it will show in the console in the below form.
console.log(myarry)
Array[2] 0: Object one: \"one\"
check this snippet
var obj = [{ "1": "one" }, { "2": "two" }] obj.forEach(function(item) { Object.keys(item).forEach(function(key) { console.log("key:" + key + "value:" + item[key]); }); });
Hope it helps