title: How to return this format this JSON into an array of strings
body: <p>I am executing a  linq query which gets me all the records from a table:</p>
  
  <pre><code>var data = _context.People.ToList(); //_context is my DataContext.
  </code></pre>
  
  <p>The above returns the the value:</p>
  
  <p><code>{
          "name": "john",
          "age": "30"
      },
      {
          "name": "jane",
          "age": "31"
      }</code></p>
  
  <p>but according to <a href="http://jsonlint.com/" rel="nofollow">jsonlint</a>, this is invalid and I need to have it be returned as:</p>
  
  <p><code>[{
          "name": "john",
          "age": "30"
      },
      {
          "name": "jane",
          "age": "31"
      }]</code></p>
  
  <p>How can I do this?</p>
  
  <pre><code> viewData.xldata = [];
           $.each(data, function(i, row) {
              var strRow = JSON.stringify(row);
              viewData.xldata.push(strRow);});
  </code></pre>
  
  <p>Deserialize using `JavaScriptSerializer:</p>
  
  <pre><code>var people = jss.Deserialize&lt;List&lt;People&gt;&gt;(args["xldata"]);
  </code></pre>