I have an array of objects that's being passed as a string. I would expect eval to be able to evaluate this into an the real array object, but
var arr = '"[{item:1,amount:100,quantity:1},{item:2,amount:200,quantity:2}]"';
console.log(eval(arr));
just returns what seems to be a string. Am I using it incorrectly?