serialize dataset to json c#

Jak
Jak
Member
364 Points
152 Posts

serialize dataset to json c#

Views: 8208
Total Answered: 1
Total Marked As Answer: 1
Posted On: 21-Jan-2015 17:29

Share:   fb twitter linkedin
Answers
Rahul Maurya
Rahul M...
Moderator
1172 Points
211 Posts
         
string json = JsonConvert.SerializeObject(table);

which serializes to something like this:

[ { "Column1": "Row Value", "Column2": "2" } ]
Posted On: 21-Jan-2015 20:45
 Log In to Chat