title: returning json message on ajax success
body: <p>I have a jquery function which performs an update via ajax</p>
  
  <p>the update works successfully, (i can check this in firebug network response), but i cant get a response message, (by alert, or by console)</p>
  
  <p>here is my code snippet...</p>
  
  <pre><code>$('#mcbatchsubscribe').on('click', 'a.ajaxresub', function (e) {
      e.preventDefault();
      var email = $(this).attr('emailvalue');
      $.ajax ({
              url: '/admin/ajax/ajax_resubscribe.php',
              data: {email: email},
              dataType: 'json',
              success: function (json) {
                  console.log("success", json);
                  //alert(json)
              }
              } );
  
      } );
  </code></pre>
  
  <p>If i open up firebug, the console returns nothing, - the network header shows the correct ajax path and parameter, the network response shows the ajax success message, 'Resubscribed Success' -what the ajax page does is to run a list subscribe on the email parameter on mailchimp, and this definitely works. here is the ajax snippet...</p>
  
  <pre><code>...if ($rsemail-&gt;TotalRows &gt; 0) { // Trigger if there is a matching row
  
  $merge_vars = array(
                  'FNAME'=&gt;    $rsemail-&gt;getColumnVal("MemberFirstName"),
                  'LNAME'=&gt;    $rsemail-&gt;getColumnVal("MemberLastName")      
                 );   
  
  $MailChimp = new \Drewm\MailChimp($api_key);
  
  $subscriberesult = $MailChimp-&gt;call('lists/subscribe', 
              array('id'                  =&gt; $list_id,
                    'email'               =&gt; array('email'=&gt;$rsemail-&gt;getColumnVal("MemberEmail")),
                    'merge_vars'          =&gt; $merge_vars,
                    'double_optin'        =&gt; true,
                    'update_existing'     =&gt; true,
                    'replace_interests'   =&gt; false,
                    'send_welcome'        =&gt; false
              ));
  
  
  if ($subscriberesult ['email'] != $rsemail-&gt;getColumnVal("MemberEmail")) {
              echo nl2br(($subscriberesult ['code'])."\r\n");
              echo nl2br(($subscriberesult ['name'])."\r\n");
              echo nl2br(($subscriberesult ['error'])."\r\n");
          } else {
              echo 'Resubscribed success';
  }
  
  } else {
    echo 'Resubscribe failure - Email not found';
  </code></pre>
  
  <p>}</p>
  
  <p>I think I am making progress</p>
  
  <p>I changed success: function (json) to complete: function (json) </p>
  
  <p>i now get </p>
  
  <p>Object {readyState: 4, responseText: "Resubscribed success", status: 200, statusText: "OK"}</p>