Hi,
Can someone tell me what is the main difference between a Javascript object defined by using "Object Literal Notation" and JSON object?
According to a Javascript book it says this is an object defined by using Object Notation:
var newObject =
{
prop1 : true,
showMessage : function (msg) {alert(msg)}
};
Why it is not a JSON object in this case? Just because it is not defined by using quotation marks?
Thanks,