title: in JSON, Why is each name quoted?
body: <p><a href="https://www.rfc-editor.org/rfc/rfc4627" rel="nofollow noreferrer">The JSON spec</a> says that JSON is an object or an array.  In the case of an object,</p>
  <blockquote>
  <p>An object structure is represented as a pair of curly brackets
  surrounding zero or more name/value pairs (or members).  <strong>A name is a
  string.</strong>  ...</p>
  </blockquote>
  <p>And later, the spec says that a string is surrounded in quotes.</p>
  <p>Why?</p>
  <p>Thus,</p>
  <pre class="lang-json prettyprint-override"><code>{&quot;Property1&quot;:&quot;Value1&quot;,&quot;Property2&quot;:18}
  </code></pre>
  <p>and not</p>
  <pre class="lang-json prettyprint-override"><code>{Property1:&quot;Value1&quot;,Property2:18}
  </code></pre>
  <p><strong>Question 1</strong>: why not allow the name in the name/value pairs to be unquoted identifiers?</p>
  <hr />
  <p><strong>Question 2</strong>: Is there a semantic difference between the two representations above, when evaluated in Javascript?</p>