I have to the replication.That time have to pass String as JSON
{"Table1" :
[
{"Name" : "MyCustomer","Description" : "cutomer","Status" : "1"}, {"Name" : "Kiraa","Description" : "My","Status" : "1",}
]
}
This is my format of JSON result. I want to convert to DataSet.
I have installed JSON.NET library. I am using C#.net
public bool convertJSONToDataSet(string strBusinessUnit, string strExecutiveCode, string strTableName, String jsonContent)
{
DataSet dataset = JsonConvert.DeserializeObject<String>(jsonContent);
return true;
}
here this statement is wrong DataSet dataset = JsonConvert.DeserializeObject<String>(jsonContent);.What is the issue. Please tell me how to covert to a JSON string to a Dataset.