title: Ignore Hyphen in Javascript (Postman)
body: <p>Building a RestAPI with Postman.</p>
  
  <p>I have some JSON data:</p>
  
  <pre><code>{
      "progress-update": {
          "@type": "parallel-progress",
          "job": {
              "@href": "/api/space/job-management/jobs/4691268"
          },
          "taskId": 4691268,
          "jobName": "Compare Config-4691268",
          "state": "DONE",
          "status": "SUCCESS",
          "percentage": 100,
          "data": "&lt;![CDATA[Total requests: 3&lt;br&gt;InSync count : 3&lt;br&gt;OutOfSync count : 0&lt;br&gt;]]&gt;",
          "subTask": [
              {
  </code></pre>
  
  <p>I want to pull the "state" value into an environment Variable that i can then use to determine wether to continue on to the next request or wait until the state is DONE.</p>
  
  <p>The problem i'm running into is "progress-update": has a hyphen in it, causing my script to not recognize it.</p>
  
  <pre><code>var jsonData = JSON.parse(responseBody);
  pm.environment.set("JobStatus", jsonData.progress-update.state);
  </code></pre>
  
  <p>Postman returns the following error:</p>
  
  <blockquote>
    <p>There was an error in evaluating the test script:  ReferenceError:
    update is not defined</p>
  </blockquote>