title: Which is correct syntax for JSON?
body: <p>I was learning JSON  but <a href="https://www.microsoftpressstore.com/articles/article.aspx?p=2244116&amp;seqNum=3" rel="nofollow noreferrer"><strong>Microsoft</strong></a> and <a href="http://www.w3schools.com/js/js_json_syntax.asp" rel="nofollow noreferrer"><strong>w3school</strong></a> provide different information regarding the syntax.</p>
  
  <p>I am stuck which one is correct.</p>
  
  <p><strong>According to  microsoft</strong></p>
  
  <p><strong>JSON:</strong></p>
  
  <pre><code> {firstName: "Rick", lastName: "Delorme", hairColor: "brown", eyeColor: "brown" }
  </code></pre>
  
  <p>Also According to Microsoft option <strong>D.</strong> is correct <strong>JSON</strong> syntax 
  <a href="https://i.stack.imgur.com/Aq9UW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Aq9UW.png" alt="enter image description here"></a></p>
  
  <p><strong>According to  w3School</strong></p>
  
  <p><strong>This is JSON</strong></p>
  
  <pre><code>{ "name":"John" }
  </code></pre>
  
  <p><strong>And this is java script-object</strong> </p>
  
  <pre><code>{firstName: "Rick", lastName: "Delorme", hairColor: "brown", eyeColor: "brown" }
  </code></pre>