title: How to pass a multidimension array to javascript from c#?
body: <p>I am using a JQuery charting plugin that takes in data points using a multi-dimension array </p>
  
  <pre><code>    var line1 = [['23-May-2008', 1578.55], ['20-Jun-2008', 566.5], 
  ['25-Jul-2008', 480.88], ['22-Aug-2008', 509.84]];
  </code></pre>
  
  <p>How can I return data formatted like the above from c#? I have tried generating a string that matches the output, but it doesn't work...</p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
  
          foreach (Stats s in perfData)
          {          
              sb.Append("['" + String.Format("{0:MM-dd-yyyy}", p.Date) + "'], " + "[" + p.Value +"],");
          }
  
          string data = sb.ToString();
          data += data.TrimEnd(new[] { ',' });
          data = "[" + data + "]";
  </code></pre>