title: Get the number of returned data in $.post()
body: <p>I'm using jQuery's <code>$.post()</code> to bring data. IT returns data as</p>
  
  <pre><code>[{"ab":"item1"},{"ab":"item2"}]
  </code></pre>
  
  <p>My question is, how do I get the number of received data in the return function? I want to use it in a for loop. </p>
  
  <pre><code>$.post('add.php',
      { },
      function(data){ 
         //var tot = how to get the number of data received ?
         for(i = 1; i&lt;tot; i++){
         }
      }
  );
  </code></pre>