I have the following object called data
, how can I access the value for key name
using Javascript
const data = {
"bar2": {
"address": "138/140 Gouger St, Adelaide SA 5000",
"appStoreURL": "http://itunes.apple.com/app/idXXXXXXXXX",
"description": "Disco Mexico, blends party vibes with fuss-free Mexican food in a small-bar setting.",
"imgURLs": [
"https://url",
"https://url"
],
"lat": -34.848082,
"lon": 138.599813,
"name": "Disco Mexico Taqueria",
"phone": "0416 855 108",
"status": "active",
"venueImgURL": "https://firebasestorage.googleapis.com/v0/b/vipeeps-2018.appspot.com/o/venueImages%2FDisco_Mex_o.jpg?alt=media&token=60d76240-221c-415c-8d0d-7324d95a30ba"
}
}