serialize dataset to json c#

Jak
Jak
Member
352 Points
151 Posts

serialize dataset to json c#

Views: 8153
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
1170 Points
210 Posts
Marked as answer      
string json = JsonConvert.SerializeObject(table);

which serializes to something like this:

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

Blog

Active User (2)

 Log In to Chat