title: Remove last comma from json in c#?
body: <p>How could I last comma from my json: I am getting this as output json</p>
  
  <pre><code>{Floor_Id:"1094",Booth_Count:12},{Floor_Id:"1095",Booth_Count:10},
  </code></pre>
  
  <p>This is my C# Code:</p>
  
  <pre><code>StringBuilder json_result = new StringBuilder();
  List&lt;XElement&gt; industries = ExpoHallXML.Descendants("industry").ToList();
                  if (industries != null &amp;&amp; industries.Count &gt; 0)
                  {
                      foreach (XElement industry in industries)
                      {
                          foreach (XElement floor in industry.Descendants("floor"))
                          {
                              if (floor.Attribute("id").Value != "0")
                              {
                                  json_result.Append("{");
                                  json_result.Append("Floor_Id:" + cmh.json_str(floor.Attribute("id").Value) + ",");
                                  int booth_count = 0;
                                  foreach (XElement page in floor.Descendants("page"))
                                  {
                                      booth_count = page.Descendants("booth").Count();
                                      json_result.Append("Booth_Count:" + booth_count +"},");
                                  }
  
                              }
  
                          }
  
                      }
                  }
              return json_result.ToString();
  </code></pre>
  
  <p>Please help!
  Thanks</p>