title: Getting a 400 Error on Ajax call with JSON
body: <p>I'm not sure what's wrong with the way I'm doing this...
  I get a 400 Error saying it's a bad request, but I can't find anything wrong with my syntax.</p>
  
  <pre><code>$.ajax({
          url : '/my_project/rest/runs/1234?token=moo',
          type : 'POST',
          data: { job_position : JSON.stringify(38) },
          contentType: 'application/json',
          dataType: 'json',
          success : function(html) {
          }
      });
  </code></pre>
  
  <p>The receiving controller:</p>
  
  <pre><code>@RequestMapping(value="/runs/{userId}", method = RequestMethod.POST, consumes = {"application/json"})
      public @ResponseBody boolean myMethod(@PathVariable String userId, @RequestParam("token") String authenticationToken, @RequestBody @Valid Long job_position){
          return true;
      }
  </code></pre>