title: Invalid JSON primitive: id
body: <p>I cannot get the following function to work properly.  It seems to be serializing it wrong.  This is about the 5th iteration of different data variants.  I was originally just doing data: {'id': id} like I do at work with WCF, but with the ASMX it just isn't working.  It looks like it's serializing teh data as id=1234 instead of id:1234, but I'm fairly new to this.  Any help would be appreciated.  Oh, and I can call the service directly in the browser and it returns the data properly so I know it's not the service.</p>
  
  <pre><code>function getVentID(id) {
      //look up id in database and get VentID
      alert('id: ' + id);
      var jsdata = { "id": + id}
      $.ajax({
          type: 'POST',
          contentType: 'application/json; charset=utf-8',
          url: 'services/UserService.asmx/getVentID',
          data: jsdata,
          dataType: 'json',
          success: function (msg) {
              alert(msg.d);
          },
          error: function (a, b, c) {
              alert('Error: ' + a.toString() + ' ' + b.toString() + " " + c.toString());
          }
      });
  }
  </code></pre>
  
  <p>p.s. I know there are like 10 identical questions but none of them have answers that I could find or that worked for me.</p>