Can anyone assist me with looping over an object that contains array values? I've been struggling with this for some time. My knowledge of JSON data structures is limited.
var storeProducts = {"items": [
{
"imgsrc": "https://cdn.shopify.com/s/files/1/0094/2252/products/M997ST_6940.progressive.jpg?v=1497039024",
"productname": "New Balance",
"productlistprice": "$240",
"discounted": "false",
"productprice": "",
},
{
"imgsrc": "https://cdn.shopify.com/s/files/1/0094/2252/products/Peacoat_363758_02_6428.progressive.jpg?v=1496428432",
"productname": "Puma Sneakers",
"productlistprice": "$120",
"discounted": "false",
"productprice": "",
},
{
"imgsrc": "https://cdn.shopify.com/s/files/1/0094/2252/products/Titan_Weave_WhiteBlueEstate_50117182901_C6501_5945-78.progressive.jpg?v=1494616290",
"productname": "Diadora",
"productlistprice": "$100",
"discounted": "true",
"productprice": "190",
},
]};