I have such an array as below;
//var tt is from console.log
var tt =[
{"price":50,"quantity":1,"sku":1},
{"price":70,"quantity":5,"sku":2}
];
NB: var tt is an array I get when I do console.log; of which when I store it as above to var tt, it works normally.
I have tried the following;
console.log(tt.price);//this give me 'undefined'
console.log(tt['price'];//this also gives me 'undefined'
Anyone who knows how to access values from such an array?