title: MVC JsonConvert.SerializeObject - how to get Column and Data Row Arrays
body: <p>I am working on serializing a viewmodel with MVC5 with JsonConvert.SerializeObject and the result is coming up with is an array for each record (e.g. [{PropertyName: Value,...},{PropertyName: Value,...}]. I am trying to fill a slick grid to get the property names dynamically and I have seen others have arrays that have the Property names in one array and then the data rows in another. How can I create [{Column Names},{DataRowValues}] so i can get the property names from this array. I will be deserializing this data as well. I was using this link as a reference, but I am using a List and had trouble making it work <a href="https://stackoverflow.com/questions/16659560/formatting-output-of-newtonsoft-json-jsonconvert-serializeobjectdataset">Formatting output of Newtonsoft.Json.JsonConvert.SerializeObject(dataSet)</a>. Thanks.</p>
  
  <pre><code>    [HttpGet]
      public JsonResult GeneratePlans()
      {
          //code here to create and populate view model
  
          return Json(JsonConvert.SerializeObject(viewModel, Formatting.Indented, new JsonSerializerSettings { }), JsonRequestBehavior.AllowGet);
      }
  </code></pre>