title: I want to search whether username and password is presenty in my json or not
body: <p>I have tried many ways of doing this but it is just not getting me what i am looking for.I have no idea about JSON,this is what I could understand from net.</p>
  
  <pre><code>var loginDataList = [{
      "username": "abc",
      "password": "abc123"
  }, {
      "username": "richa",
      "password": "richa123"
  }];
  
  var jsonString = JSON.stringify(loginDataList);
  
  if ((username in jsonString) &amp;&amp; (password in jsonString))
      alert("woola");
  else
      alert("nope");
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>if (jsonString.has("username"))
      $('h2').text('Woollaaaa ').delay(1000).hide(1);
  </code></pre>
  
  <p>Any help would be appreciated.</p>