title: JsonResult returns null for Jquery .ajax
body: <p>I am trying to do a Jquery .ajax post to an MVC action. This Action then should return a JsonResult. Currently, this JsonResult is "", however I want the return object to be filled with Json. Any help? Thanks!</p>
  
  <pre><code>$.ajax({
    type: 'post',
    dataType: 'json',
    url: url,
    contentType: "application/json; charset=utf-8",
    traditional: true,
    data: JSON.stringify({ source: source }),
    success: function (data) {
  debugger;
    }
  });
  
  public ActionResult PublishSource(string source)
  {
      return Json(new {data = "test"});
  }
  </code></pre>
  
  <p>Edit: Here's my current code below. Still having returned data in success method of .ajax being null.</p>
  
  <pre><code>$.ajax({
          type: 'post',
          cache: false,
          url: url,
          contentType: "application/json",
          success: function (data) {
              debugger;
          }
      });
  
  
  public JsonResult PublishSource()
  {
      var data = "test";
      return Json(data, JsonRequestBehavior.AllowGet);
  }
  </code></pre>