public string GetAll() { StringBuilder sb = new StringBuilder(); string sep = ""; foreach (DataRow row in this._Parameters.Rows) { sb.Append(string.Format("{0}\"{1}\":{2}", sep, row["key"], StringUtils.AjaxEncode(row["value"].ToString()))); sep = ","; } return("{" + sb.ToString() + "}"); }