title: How to check JSON is empty in in JQuery?
body: <p>I receive following response in an Ajax call:</p>
  
  <pre><code>[]
  </code></pre>
  
  <p>I want to check in JQuery whether this is JSON is empty or not? I have tried some ways out:</p>
  
  <pre><code>var data = '[]';
  try {
  json = $.parseJSON(data);
  alert(json);
  } catch (e) {
  alert("Va");
  }
  </code></pre>
  
  <p>also tried</p>
  
  <pre><code> if (data.objects.length == 0) {
                  $("#divi").html('nothing found');
              }
              else{
                 $("#divi").html('Found 10 Objects');
              }
  </code></pre>
  
  <p>but in vein. Could anyone suggest how to check response JSON is an empty JSon or not; in jQuery?</p>
  
  <p><strong>Update</strong>:</p>
  
  <pre><code> data: {
      '_CONV_ID': $('input[name="_CONV_ID"]').val(),
   },
   success: function (data) {
   //Here JSON check to be implemented. I am getting data
   }
  </code></pre>