title: Using jQuery and JSON with AJAX responseText?
body: <p>Ok, I'm a bit new when it comes to jQuery and json.  If I'm using json as my return type, can I still retrieve responseText from an XMLHttpRequest object?</p>
  
  <p>here's the code that i'm using:</p>
  
  <pre><code>json response: {"clients": []}
  
  $.ajax({
          type: "POST",
          url: "/myurl/whatever.php",
          data: myData,
          dataType: "json",
  
          success: function(msg){
              status.html(msg[0]);
          },
          error: function(msg) {
                  status.html("Error: " + msg[0]);
          }
  
          });
  </code></pre>
  
  <p>is the use of msg[0] correct if i want to output the json response or am i missing something?</p>
  
  <p>how can i still use the above code with XMLHttpRequest to get the status, responseText, etc.</p>
  
  <p>thanks, all!</p>