title: Pass Multiple Parameters to jQuery ajax call
body: <p>I have the following jquery code to call a webmethod in an aspx page</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "popup.aspx/GetJewellerAssets",
      contentType: "application/json; charset=utf-8",
      data: '{"jewellerId":' + filter + '}',
      dataType: "json",
      success: AjaxSucceeded,
      error: AjaxFailed
  });
  </code></pre>
  
  <p>and here is the web method signature</p>
  
  <pre><code>[WebMethod]
  public static string GetJewellerAssets(int jewellerId)
  {
  </code></pre>
  
  <p>This works fine.</p>
  
  <p>But now I need to get two parameters passed to the web method</p>
  
  <p>the new web method looks like this</p>
  
  <pre><code>[WebMethod]
  public static string GetJewellerAssets(int jewellerId, string locale)
  {
  }
  </code></pre>
  
  <p>How do I change the client code to successfully call this new method signature ?</p>
  
  <p>EDIT:</p>
  
  <p>The following 2 syntaxes worked</p>
  
  <pre><code>data: '{ "jewellerId":' + filter + ', "locale":"en" }',
  </code></pre>
  
  <p>and </p>
  
  <pre><code>data: JSON.stringify({ jewellerId: filter, locale: locale }),
  </code></pre>
  
  <p>where filter and locale are local variables</p>