Avoiding comma seperator for the last value
<p>I am generating an output on a webpage in a format like this </p>

<blockquote>
  <p>({"1":"Jeff","2":"Tom","3":"Michael",})</p>
</blockquote>

<p>For this, basically this is the code I am using</p>

<pre><code>Response.Write("(" + "{");
//
for (Int32 i = 0; i &lt; k.Length; i++)
{
  Response.Write(Convert.ToString(k.GetValue(i)) + ",");
}
//
Response.Write("}" + ")");
</code></pre>

<p>Notice my output, after Michael" there is a comma which I do not want since this is the last vaue but this is appearing since <code>,</code> is in the for loop. How to prevent this/remove this last comma from appearing?</p>

<p>My output should be <code>({"1":"Jeff","2":"Tom","3":"Michael"})</code> (There's no comma after last value here)</p>
