title: How to validate dynamic values in postman
body: <p>I want to validate some mandatory fields in my JSON response body. Until now I am using a static way of testing by using hardcoded values something like this</p>
  <pre><code>json_response = JSON.parse(responseBody);
  x=json_response
  pm.expect(x).to.equal(&quot;abc&quot;); 
  </code></pre>
  <p>But I want to rerun my test scripts so I don't want to change my tests again and again to validate the values. Could anyone please suggest how can I validate my response body.</p>
  <pre><code>{
      &quot;Name&quot;: &quot;John&quot;,
      &quot;Contact number&quot;: 9826363660,
      &quot;Address&quot;: &quot;xyz&quot;
  }
  </code></pre>
  <p>As every time I will get new values in these keys &quot;Names&quot; &quot;Contact number&quot; &quot;Address&quot;</p>