title: Send and receive double[][] in c# webservices error
body: <p>I want to receive and send matrix (double[][]) using a c# webservice RESTfull.</p>
  
  <p>I tried diferent options but without any sucess.</p>
  
  <p>C# code:</p>
  
  <pre><code>[HttpGet()]
      [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
  
      public justTest doSomething([FromUri] double[][] a)
      {
          justTest j = new justTest();
  
          return j;
      }
  </code></pre>
  
  <p>Javascript/Jquery:</p>
  
  <pre><code>var array = [[1,1],[2,2],[3,3]];
  var object = {
      a: array
  }
  
  $.ajax({
      type: "GET",
      url: "http://localhost:53496/api/Operations/doSomething",
      data: object,
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      async: true,
      cache: false,
      success: function (data) {
          alert(data);
      },
      error: function (x, e) {
          alert("ERRo")
      }
  });
  </code></pre>
  
  <p>Error:</p>
  
  <ol>
  <li>The c# paramenter a is null;</li>
  <li>The c# sends the following error to the javascript:
  
  <blockquote>
    <p>An error has occurred.","ExceptionMessage":"A referência de objecto não foi definida como uma instância de um objecto.","ExceptionType":"System.NullReferenceException","StackTrace":"</p>
  </blockquote></li>
  </ol>
  
  <p>Thank you</p>