Object.keys(data).forEach(function (key, index) { var value = data[key]; console.log(key,index, value); });