title: Pass an array from javascript to c#
body: <p>I have a array in javascript and i need to get it to my c# webMethod. what is the best way to do this?</p>
  
  <p>my c# code is like this:</p>
  
  <pre><code> [WebMethod]
  public static void SaveView(string[]  myArray, string[] filter)
  {
  }
  </code></pre>
  
  <p>EDIT--</p>
  
  <p>My json data looks like this:</p>
  
  <pre><code>{"myArray":[{"name":"Title","index":"Title","hidden":false,"id":"1","sortable":true,"searchoptions":{"sopt":["cn","eq","bw","ew"]},"width":419,"title":true,"widthOrg":150,"resizable":true,"label":"Title","search":true,"stype":"text"},{"name":"Author","index":"Author","hidden":false,"id":"3","sortable":true,"searchoptions":{"sopt":["cn","eq","bw","ew"]},"width":419,"title":true,"widthOrg":150,"resizable":true,"label":"Author","search":true,"stype":"text"}]}
  </code></pre>
  
  <p>But i doesnt work... any idea why?</p>
  
  <p>Thank you very much.</p>