title: jQuery Ajax Get Doesn't Pass Received Data Into Success Function at Internet Explorer
body: <p><strong>My question is when I use jQuery ajax get, I am getting data at response body however it doesn't pass into success function. How can I make it work?</strong></p>
  
  <p>I am making an ajax put but it doesn't work at ie9 (works on other browsers) so I changed it like that just for test:</p>
  
  <pre><code>    $.ajax({
          async : false,
          type: 'PUT',
          contentType: 'application/json',
          url:updateUrl + "?_" + new Date().getTime(),
          data: JSON.stringify(model),
          cache: false,
          dataType: "json",
          dataFilter: function(data) {
              var resp = eval('(' + data + ')');
              return resp;
          },
          success: function(data, status, xhr) {
              alert("success&gt; " + data.property);
              alert(typeof data);
              r = resultResponse(data);
           },
          error: function(data, status, xhr) {
              alert("error&gt; " + data.responseText);
              try {
                  r = error($.parseJSON(data.responseText));
              } catch (err) {
                  //Handle error
              }
          }
      });
  </code></pre>
  
  <p>data is alerting as undefined. My put data is sending correctly, my server side works well and send response to client however I get undefined instead of data. After some tests I realized the problem:</p>
  
  <p>When I capture network communication packets at ie 9 response body is what I want. However success function can not handle it. If needed, I can give more information about my server(I could make it work when I write the data to response instead of using jackson json mapper at Java - it was working and the only difference was that was not included ta working version at response headers: 
  Key Value
  Content-Type    application/json;charset=UTF8 )</p>
  
  <p>I think that the problem can be handle at client side, I think not with server side.
  Any ideas?</p>
  
  <p><strong>EDIT:</strong> I tried that style:</p>
  
  <pre><code>$.ajax({url: "/url",
    dataType: "text",
    success: function(text) {
      json = eval("(" + text + ")");
      // do something with JSON
    }
  }); 
  </code></pre>
  
  <p>However response header is still:</p>
  
  <p>Key Value
  Content-Type    application/json;charset=UTF8</p>