Introduction:
Here
I will explain how to convert asp.net datatable to JSON
string in C#, VB.NET or How to get JSON string from Datatable in in C#, VB.NET
Description:
In
previous posts I explained convert datatable to xml in asp.net, Convert datatable/dataset to arraylist, convert xml string to datatable in c#, asp.net, C#, SQL Server Interview
Questions,
send gridview as email body, upload and download files from gridview and many articles
relating to asp.net,
C#, VB.NET code snippets. Now I will explain how
to convert datatable to JSON
string in asp.net using C#, VB.NET.
To
convert datatable to JSON string we need to write the code like as shown below