title: Accessing a JavaScript object property names with a "-" in it
body: <p>I have a requirement to read JSON data in my application. Problem is that the JSON data that I am getting from the service includes "-" and when I am trying to read it, I am getting "Uncaught ReferenceError: person is not defined ". e.g.</p>
  
  <p>I have below JSON object-</p>
  
  <pre><code> var JSONObject ={
   "name-person":"John Johnson",
   "street":"Oslo West 16", 
   "age":33,
   "phone":"555 1234567"};
  </code></pre>
  
  <p>when I am writing below console log statement I am getting "Uncaught ReferenceError: person is not defined " error </p>
  
  <pre><code>  console.log(JSONObject.name-person);
  </code></pre>
  
  <p>Can someone please help me how to read such data which includes "-" in it? I do not have control on the service and the DB so to modify source data is not in my hand.</p>