title: It is possible to get an arraylist on the webmethod parameter from ajax call?
body: <p>I create for my web application in C# webforms a webmethod which is invoked by an Ajax call.</p>
  
  <pre><code>    [System.Web.Services.WebMethod]
      public static string DataExport(ArrayList arr)
      {
  
      }
  </code></pre>
  
  <p>How I can fill the ArrayList of my method DataExport from the "data" field of the ajax call ?</p>
  
  <p>Now my Ajax is simple like that :</p>
  
  <pre><code> $.ajax({
                  type: "POST",
                  async: true,
                  url: "Default.aspx/DataExport",
                  data: '{ arr:"' + test + '"}',
                  contentType: "application/json; charset=utf-8",
                  dataType: "json",
                  success: function (response) { },
                  error: function (response) { }
              });
  </code></pre>
  
  <p>And test in the data field is JSON.I make several tests, and it works if I replace ArrayList by string and I get a string with the JSON inline.</p>
  
  <p>Have you an idea how to modify the data to fill the type ArrayList of the webmethod ?</p>