title: pass multiple arrays; ajax to webmethod
body: <p>I would like to pass 2 javascript string arrays 
  "myArray1" and "myArray2" from ajax to a webmethod. What I have is the following which is not working.</p>
  
  <pre><code>var myArray1 = new Array();    
  var myArray2 = new Array();    
  // the arrays are filled further in the code.   
  // call to the webmethod:
  $.ajax({
          type: "POST",
          url: "mypage.aspx/SavePage",
          data: ??????,
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function(msg) {
              alert(msg.d);
          },
          error: function() {
              alert("failed");
          }
      });
  </code></pre>
  
  <p>I do not know how to pass these arrays in the <code>data:</code> part of the call.</p>
  
  <p>C# part of my code.</p>
  
  <pre><code>public static string SavePage(List&lt;string&gt; myArray1, List&lt;string&gt; myArray2)
  {
  }
  </code></pre>