title: How retrieve responseJSON property of a jquery $.ajax object
body: <p>I have this javascript:</p>
  
  <pre><code>$ajax = $.ajax({
      type: 'GET',
      url: 'DBConnect.php',
      data: '',
      dataType: 'json', 
      success: function(data) {},
      error:function (xhr, ajaxOptions, thrownError) {
          dir(thrownError);
          dir(xhr);
          dir(ajaxOptions);
      }
  });
  console.dir($ajax);
  console.dir($ajax.responseJSON);
  </code></pre>
  
  <p>console.dir($ajax) shows it has a property named responseJSON, but when I try to access it with $ajax.responseJSON it returns undefined:
  <img src="https://i.stack.imgur.com/jKopz.jpg" alt="enter image description here"></p>