title: Checking if Json object is empty
body: <p>I use Jquery to check if my object from an ajax call is empty or not.</p>
  
  <p>In this example I have made a correct AJAX call and it returns some data.</p>
  
  <pre><code>console.log ("obj before Json parse: ",response);
  var test = $.isEmptyObject(response);
  console.log("test if object is empty:",test);
  
  obj before Json parse:  [{"dateTime":"2015-10-02","entries":220}]
  est if object is empty: false
  </code></pre>
  
  <p>However in this example I have made an incorrect AJAX call that returns nothing.</p>
  
  <pre><code>console.log ("obj before Json parse: ",response);
  var test = $.isEmptyObject(response);
  console.log("test if object is empty:",test);
  
  obj before Json parse:  []
  test if object is empty: false
  </code></pre>
  
  <p>surely the test variable should be true in this case as the object is empty?</p>