title: Getting response from Postman in script
body: <p><a href="https://i.stack.imgur.com/HKYIs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HKYIs.png" alt="image attached"></a>I want to get the value of token from response of Postman and set it to an environment. </p>
  
  <p>My response is showing like :</p>
  
  <pre class="lang-js prettyprint-override"><code>{
    "success": true,
    "token": "ojkdd"
  }
  </code></pre>
  
  <p>and my script is : </p>
  
  <pre class="lang-js prettyprint-override"><code>pm.test(responseBody, true)
  var jsonData = JSON.parse(responseBody);
  console.log(jsonData)
  </code></pre>
  
  <p>I get the following error : </p>
  
  <pre class="lang-js prettyprint-override"><code>ReferenceError: responseBody is not defined
  </code></pre>