title: Check if a JSON array is empty
body: <p>I know from the first look it sounds like duplicate question but i don't think it is...</p>
  
  <p>I am receiving back a JSON array as:</p>
  
  <pre><code>var test1 = [] ;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>var test2 = [{},{},{}] ;  //This is empty
  </code></pre>
  
  <p>I have no problem finding out if <code>test1</code> is empty.</p>
  
  <pre><code>jQuery.isEmptyObject(test1)
  </code></pre>
  
  <p>My problem is with the <code>test2</code>... 
  Please note that in some cases the test2 might return something like:</p>
  
  <pre><code>var test2 = [{"a":1},{},{}] ;  //All these are not empty
  var test2 = [{},{"a":1},{}] ;  //All these are not empty
  var test2 = [{},{},{"a":1}] ;  //All these are not empty
  </code></pre>
  
  <p>The above scenarios shouldn't be counted as empty.I've tried to use <code>.length</code> but it's not helping as the length is always 3... Any ideas?</p>
  
  <p>Cheers.</p>