title: Parsing Mandrill JSON Response with jQuery / Javascript
body: <p>I have a php script which is sucessfully connecting to and sending an email through the Mandrill API. As dumb as it sounds, I can't figure out how to parse the following JSON reponse:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [email] =&gt; matt@mattblum.com
              [status] =&gt; sent
              [_id] =&gt; eedced1b58e24668907024e937afeabd
              [reject_reason] =&gt; 
          )
  
  )
  </code></pre>
  
  <p>Full ajax call is:</p>
  
  <pre><code>$.ajax({
      type: 'POST',
      url: 'mandril.php',
      data: formData.serialize(),
      success: function(returnedData) {
          var response = returnedData;
          status = response[0]['status']; // I've also tried different combos of this
  
          if(status == "sent") {
              msgs('Message sent!');
              var alreadySent = true;
          } else {
              msgs(response);
          }
  
        },
        error: function(e) {
            console.log(e);
        }
  </code></pre>
  
  <p>The code I've tied to read the 'status' element:</p>
  
  <pre><code>console.log(response[0]['status']);
  console.log(response[0][1]);
  console.log(response[0][0]['status']);
  console.log(response[0][0][1]);
  </code></pre>
  
  <p>Another thing I don't understand is that:</p>
  
  <pre><code>var response = returnedData;
  console.log(response[0]);
  </code></pre>
  
  <p>Returns a capital 'A' and nothing else.</p>
  
  <p>I'm sure it's something dumb that I'm doing but any help is greatly appreciated.</p>