string json = JsonConvert.SerializeObject(table, Formatting.Indented);
Edit: You don’t need indented formatting, of course, but it makes it nice and readable.
string json = JsonConvert.SerializeObject(table, Formatting.Indented);
Edit: You don’t need indented formatting, of course, but it makes it nice and readable.