public static string dictToJson(SortedDictionary<string, string> dict)
{
StringBuilder json = new StringBuilder();
json.Append ("{");
foreach (KeyValuePair<string, string> temp in dict)
{
json.Append("\"" + temp.Key + "\"" + ":" + "\"" + temp.Value + "\"");
json.Append (",");
}
json.Remove (json.Length-1, 1);
json.Append ("}");
string content = json.ToString ();
return content;
}