title: Multidimensional Array to MVC Controller
body: <p>I have the following controller method</p>
  
  <pre><code>    public ActionResult Export(string [,] data, string workbookName)
      {
          ExcelWorkbook workbook = new ExcelWorkbook();
          workbook.AddRows(data);
  
          return new FileStreamResult(workbook.SaveSheet(), "application/vnd.ms-excel")
          {
              FileDownloadName = workbookName
          };
      }
  </code></pre>
  
  <p>Which takes a two dimensional array and outputs to a worksheet.</p>
  
  <p>I have failed so far to get anything other than null in the data parameter when posting from jquery with a json array. Does anyone know the correct format of the json needed to populate the data parameter. I am on Jquery 1.7.2.</p>
  
  <p>Here is my jquery </p>
  
  <pre><code>    var arguments = {};
  
      arguments.data = [["1"], ["2"], ["3"]];
      arguments.workbookName = "test";
  
      //Populate arrayOfValues 
      $.ajax({
          type: "POST",
          url: '/Excel/Export',
          datatype: "json",
          traditional: true,
          data: arguments,
          success: function (data) {
              alert(data);
          }
      });
  </code></pre>