I\'m bashing my head against an error I can\'t work out how to fix. I have the following;
JSON
{\"products\": [ { \"product_id\" : \"123
data is not an array, it is an object with an array of products so iterate over data.products
data
data.products
var allProducts = data.products.map(function (item) { return new getData(item); });