title: dataType 'application/json' vs. 'json'
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2722750/ajax-datatype">$.ajax - dataType</a>  </p>
  </blockquote>
  
  
  
  <p>I am using jQuery 1.8.2, and for some reason <code>'application/json'</code> does not work, but <code>'json'</code>  works as <code>dataType</code> to a standard <code>jquery</code> <code>ajax</code> call. Is this a glitch? A version related difference? or is there an established difference between the two?</p>
  
  <pre><code>$(document).ready(function() {
      $.ajax({
          type : "POST",
          url : '&lt;c:url value="/url.htm" &gt;',
          //dataType : "application/json", &lt;-- does not work
          dataType: 'json' // &lt;-- works
          success : function(data) {
              // do something          
          },
          error : function(data) {
              // do something else
          }
      });
  });
  </code></pre>