title: What is the difference between JSON and Object Literal Notation?
body: <p>Can someone tell me what is the main difference between a JavaScript object defined by using <em>Object Literal Notation</em> and <em>JSON object</em>?</p>
  
  <p>According to a JavaScript book it says this is an object defined by using <em>Object Notation</em>:</p>
  
  <pre><code>var anObject = {
      property1 : true,
      showMessage : function (msg) { alert(msg) }
  };
  </code></pre>
  
  <p>Why isn't it a JSON object in this case? Just because it is not defined by using quotation marks?</p>