title: JSONError | No data, empty input at 1:1
body: <p>I'm tring to print the response code in the console, but i always end up in getting the response as "JSONError | No data, empty input at 1:1"</p>
  
  <p>im getting this error when the response code is 204. else condition works fine.</p>
  
  <p>script is not entering to the condition.</p>
  
  <p>please review the  code and provide a solution. Thanks.</p>
  
  <pre><code>var respcode=pm.response.code;
  var stagresbody=pm.response.json(responseBody);
  
  if (respcode === 204) { 
      pm.test("engine is suspended with resposne code"+respcode,function(){ 
          console.log(respcode); 
      }) 
  }
  else { pm.test("Staging is resumed with message"+stagresbody.serviceStatus,function(){
      console.log("Staging is resumed with message "+stagresbody.serviceStatus);
      }); 
  }
  </code></pre>