title: How to pass multiple parameters in json format to a web service using jquery?
body: <p>I'm trying to execute a asp.net webservice using jquery. When I pass only one input parameter it works fine: </p>
  
  <pre><code>$.ajax({  
      type: "POST",  
      url: url,  
      data: "{'Id1':'2'}",  
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      success: callback
  });  
  </code></pre>
  
  <p>but if  I try to pass multiple parameters it fails</p>
  
  <pre><code>$.ajax({  
      type: "POST",  
      url: url,  
      data: "{'Id1':'2'},{'Id2':'2'}",  
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      success: callback
  });    
  </code></pre>
  
  <p>Of course, when I try to pass 2 input parameters, I modify the web method so that it takes 2 input parameters.</p>
  
  <p>Any ideas?</p>