title: Confirm responseBody contains partial string in postman
body: <p>I'm new to JSON and haven't been able to find an example of what I'm trying to achieve. I'm looping through my responseBody trying to confirm that each returned equipment model contains partial text of "Tra". How do I parse a value for substring?</p>
  
  <pre><code>{
      "categories:[],
      "equipment":[
          {
              "model":"580 Trac Vac"
          },
          {
              "model":"4X2 Trail Gaitor"
          },
          {
              "model":"Trac Mass-Ter  40'"
          }]
  }
  
  
  //Confirm Model Partial
  var jsonData = JSON.parse(responseBody);
  var resultCount = jsonData.equipment.length;
  for (i=0;i&lt;resultCount;i++){
      var modelString = jsonData.equipment[i].model;
      tests["Resultset " +i+ " contains \"Tra\""] = modelString.has("Tra");
  }
  </code></pre>
  
  <p>Can I do something similar or should I be using some jq and regex combination?</p>