title: List of Objects To Json String
body: <p><strong><em>How do you turn a list of Objects into a JSON String?</em></strong></p>
  
  <p>The code below returns only one attribute, People. How to add multiple attributes to it? I have been using JsonConvert to change an object into JSON format. I would be open other options / opinions on how to do it. Any help would be much appriciated! </p>
  
  <p><strong>Wanted Response:</strong></p>
  
  <pre><code>{"People":
      {"Person": 
          {"FirstName":"Mike", "LastName":"Smith", "Age":"26"}
      },
      {"Person": 
          {"FirstName":"Josh", "LastName":"Doe", "Age":"46"}
      },
      {"Person": 
          {"FirstName":"Adam", "LastName":"Fields", "Age":"36"}
      }
  } 
  </code></pre>
  
  <p><strong>The Person Class</strong></p>
  
  <pre><code>public class Person
  {
      public string FirstName { get ;set; }
      public string LastName { get ;set; }
      public int Age { get ;set; }    
  }
  </code></pre>
  
  <p><strong>Processing Logic</strong></p>
  
  <pre><code>public JsonResult GetAllPeople()
  {
      List&lt;Person&gt; PersonList = new List&lt;Person&gt;(); 
      String responseJSON = "";
  
      foreach(string data in something){
  
          //Some code to get data
          Person p = new Person(); 
          p.FirstName = data.FirstName ;
          p.LastName  = data.LastName 
          p.Age = data.Age;
  
          responseJSON += new { Person = JsonConvert.SerializeObject(p) };
      }
  
      return Json(new { People = JsonConvert.SerializeObject(responseJSON ) }, JsonRequestBehavior.AllowGet);
  
  }
  </code></pre>