data = JSON.parse(data); for(var key in data) if(data.hasOwnProperty(key)){ console.log(key, data[key]); }