title: C# list to JToken
body: <p>How can i save my list of objects in json file?
  It's my code:</p>
  
  <pre><code>string json = System.IO.File.ReadAllText(Server.MapPath("~/settings.conf"));
              dynamic jsonObj = JsonConvert.DeserializeObject(json);
  
  City city = svm.City;
              jsonObj["city"]["name"] = city.Name;
              jsonObj["city"]["latitude"] = city.Latitude;
              jsonObj["city"]["longitude"] = city.Longitude;
              jsonObj["city"]["id"] = city.ID;
  List&lt;Social&gt; bottomSocial = svm.BottomSocials;
              jsonObj["bottomSocial"] = bottomSocial;
  
  
              string output = JsonConvert.SerializeObject(jsonObj, Newtonsoft.Json.Formatting.Indented);
              System.IO.File.WriteAllText(Server.MapPath("~/settings.conf"), output);
  </code></pre>
  
  <p>It works great for City, but don't works for bottomSocial.</p>