for restaurant in data['restaurants']: print restaurant['restaurant']['name']
const res = JSON.parse(xhr.responseText); for (const key in res){ if(obj.hasOwnProperty(key)){ console.log(`${key} : ${res[key]}`) } }