Try This
public DataTable GetDtFromJson(string jsonString)
{
try
{
var table = JsonConvert.DeserializeObject<DataTable>(jsonString);
return table;
}
catch (Exception ex)
{
throw new ArgumentException(ex.Message);
}
}
make sure that you have included
using Newtonsoft.Json;
using Newtonsoft;