Newtonsoft Serialize Dataset To Json

Newtonsoft Serialize Dataset To Json Rating: 4,1/5 1944 votes

Jan 07, 2017  I need to pass the dataset to WCF service which will receive dataset object as an input. So I need to serialize Dataset which have multiple named DataTables (around 14 datatables) to JSON using JavaScriptSerializer. Serializing Dataset in c# using NewtonSoft.JSon. When i serialized it using newtonsoft.json, it serialized the 1st table data only but i need 2nd table also with empty values meaning that so that i can deserialize this to another dataset so that it can have 2 tables with 1 table with data and another table with no data. This is done in C# Code is below.

  1. Newtonsoft Serialize Dataset To Json Pdf
  2. Newtonsoft Serialize Dataset To Json Converter
  3. Newtonsoft Json Serialize To String
Active3 years, 1 month ago

Newtonsoft Serialize Dataset To Json Pdf

Newtonsoft

My scenario is like this. I've a dataset that has 2 tables inside and 1st table has rows but the 2nd table has empty that meaning that it has no records. When i serialized it using newtonsoft.json, it serialized the 1st table data only but i need 2nd table also with empty values meaning that so that i can deserialize this to another dataset so that it can have 2 tables with 1 table with data and another table with no data. This is done in C#Code is below

SamyCHAN is your channel list editor for SAMSUNG televisions. All Series (D, E, F, H, J, K) web based channel sorting renaming favorites. Channel May 11, 2014  Download SamsChannelEditor for free. Sort your Samsung TV channels in your PC. SamsChannelEditor is a desktop application for editing a channel list from your Samsung TV. Now sorting channels should be much easier.

Here is the json value :

and this is not having any data about table 2.

Mark
2,6182 gold badges31 silver badges49 bronze badges
user6511101user6511101

1 Answer

used newtonsoft.json and its serializing and deserializing the datasets even with empty datatables as needed.Thnx for ur support

Newtonsoft Serialize Dataset To Json Converter

user6511101user6511101

Newtonsoft Json Serialize To String

Not the answer you're looking for? Browse other questions tagged c#json or ask your own question.