title: jquery: Iterate over json result
body: <p>I have json result as follow: </p>
  
  <pre><code>{"Result":"OK","Records":[{"impTxnId":12231,"forecastedId":26518},
  {"impTxnId":12231,"forecastedId":26519}]}
  </code></pre>
  
  <p>How do I iterate over Records? I want <code>impTxnId</code> and <code>forecastedId</code> values.</p>
  
  <p>Code:</p>
  
  <pre><code>$(function(){
      var request = $.ajax({
          url: '&lt;%=getMatchedTransactionsURL%&gt;',
          type : "post",
      });
      request.done(function (data) {
          alert(data); // This displays the data. 
          $.each(data.Records, function(i, record) {
              alert(record.impTxnId + " " + record.forecastedId);
          });
      });
  });
  </code></pre>