Is it feasible to access the values in the 'Roofing Insulation' array using JavaScript, especially when dealing with duplicate attribute names?
I've attempted various syntaxes like productListing['Roofing Insulation']['Roofing Insulation'] but haven't been successful. Despite being aware of the duplication being bad practice, it's the only option I have...
{
"storeServices":{
"Local Services":[
"Rooftop",
"EPDM",
"Next-Day Delivery Available"
],
"National Services":[
"Covered",
"Window",
"Job Site Signs"
]
},
"productListing":{
"Roofing Insulation":{
"Roofing Insulation":[
"Celotex",
"Dow",
"Foamular",
"Johns Manville",
"Pactiv",
"Tyvek"
]
},
...
}