I have created an array of objects that needs to be stored and kept for another page.
The array of objects is similar to this:
var cheese_array = [
You're missing a , in your 3rd object, after age:
,
var cheese_array = [ { name: "Chedder", age: "34", smelly: true }, { name: "Brie", age: "4", smelly: false }, { name: "Blue Stilton", age: "13", smelly: true } ]; var jsonObj = JSON.stringify(cheese_array);
This will now work and display correctly.