title: ASP.Net MVC Json Result: Parameters passed to controller method issue
body: <p>I'm having a problem getting a controller method that returns a JsonResult to accept parameters passed via the JQuery getJSON method.</p>
  
  <p>The code I’m working on works fine when the second parameter ("data") of the getJSON method call is null. But when I attempt to pass in a value there, it seems as if the controller method never even gets called.</p>
  
  <p>In this example case, I just want to use an integer. The getJSON call that works fine looks like this:</p>
  
  <pre><code>$.getJSON(”/News/ListNewsJson/”, null, ListNews_OnReturn);
  </code></pre>
  
  <p>The controller method is like this:</p>
  
  <pre><code>public JsonResult ListNewsJson(int? id)
  {
      …
      return Json(toReturn);
  }
  </code></pre>
  
  <p>By putting a breakpoint in the ListNewsJson method, I see that this method gets called when the data parameter of getJSON is null, but when I replace it with value, such as, say, 3:</p>
  
  <pre><code>$.getJSON(”/News/ListNewsJson/”, 3, ListNews_OnReturn);
  </code></pre>
  
  <p>… the controller method/breakpoint is never hit. Any idea what I'm doing wrong?</p>
  
  <p>I should also mention that the controller method works fine if I manually go to the address via my browser ("/News/ListNewsJson/3").</p>