Misbah Ulah

Misbah Ulah

  • 1.7k
  • 23
  • 716

json convert to string

Jul 25 2019 3:26 AM
this is my code 
 
private void btnKeywords_Click(object sender, EventArgs e)
{
string document = string.Empty;
if (chkDocument.Checked == true)
{
document = txtDocument1.Text.Trim() + " " + txtDocument2.Text.Trim();
} else
{
document = txtDocument1.Text.Trim();
}
string result = clas.keywords(document);
// var jsonString = Newtonsoft.Json.JsonConvert.SerializeObject(result);
dynamic response = JsonConvert.DeserializeObject(result);
List Kewordlist = response.keywords.ToObject >();
//List data = new List();
//data = Kewordlist;
txtResult.Text = result;
txtResult.Text = result;
}
 

Answers (5)