title: How do I iterate through json message's nested array with jquery?
body: <p>How do I iterate through this json message's nested array(i.e. "orders") with jquery?</p>
  
  <pre><code>[{"Type":"X","Symbol":"AAP","BidPrice":17.0,
  "OfferPrice":0.0,"BidQty":9,"OfferQty":0,"LastTradePrice":17.0,
  "orders":[{"BidQuantity":"12","BidPrice":"17.0","OfferQuantity":"","OfferPrice":""},
  "BidQuantity":"5","BidPrice":"17.0","OfferQuantity":"","OfferPrice":""},
  "BidQuantity":"5","BidPrice":"17.0","OfferQuantity":"","OfferPrice":""},
  "BidQuantity":"2","BidPrice":"16.0","OfferQuantity":"","OfferPrice":""}]}
  </code></pre>
  
  <p>I have tried the following way but it does not work</p>
  
  <pre><code>$.each(data, function(i, item) {
     $('#last').text(data[i].LastTradePrice);
  
     var ords = item.orders;  
     $.each(ords, function(x,ork) {
      alert(ork[x].BidPrice);
     });                                      
  });
  </code></pre>
  
  <p>I get the following error in firefox console</p>
  
  <p>ork[x] is undefined</p>