title: jquery unable to read json response (using $.post)
body: <p>I am submitting a post request with data type json. 
  I am able to see json response in fiddrel but jquery is not able to parse that.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$("#jsonTestCasePost").click(function(){
          var requestType = $("#requestType").val();
          $('#result').val(requestType);
          debugger;
          $.post("http://localhost/api/number/substract", {numberA:"32",numberB:"10"},
           function(data){
              debugger;
              $('#result').val(data);
           }, requestType);
  });
  </code></pre>
  
  <p>This is my raw response text in fiddler.</p>
  
  <pre><code>HTTP/1.1 200 OK
  Content-Type: application/json
  Content-Length: 15
  Server: Jetty(6.1.11)
  
  {"result":"22"}
  </code></pre>
  
  <p>In jquery done function I see following values:</p>
  
  <pre><code>status: 0
  statusTex: "", 
  responses: {}
  headers: ""
  </code></pre>
  
  <p>Any idea what am I doing wrong here?
  Thanks</p>