title: jQuery ajax callback json parsing issue
body: <p>I'm working with Github API V3</p>
  
  <p>I'm using following code to make ajax call</p>
  
  <pre><code>$.ajax({
      type:'POST',
      url: 'https://api.github.com/gists',
      data: JSON.stringify({
          "public": true,
          "files": {
              "sample.html": {
                  "content": 'html content'
              }           
          }, 
      }),
      success:function(response){
          alert(response.id);
      }
  });
  </code></pre>
  
  <p>I have to stringify data as Github API returns Error 400! if i don't. With above example, Github API does response as I expect.</p>
  
  <p>I'm having issue with callback parsing though. Above code works with webkit &amp; opera but firefox fails with success function. I have to modify code as below to get work in firefox.</p>
  
  <pre><code>success:function(response){
      alert(JSON.parse(response).id);
  }
  </code></pre>
  
  <p>But then Webkit &amp; Opera fails with success response with above modified code.</p>
  
  <p>What is correct way to get success callback across all browser ? What I'm doing wrong ?</p>