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
Active3 years, 1 month ago
Newtonsoft Json Serialize Jtoken
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. Review of videoredo software.
Newtonsoft Serialize Dataset To Json Converter
Here is the json value :
and this is not having any data about table 2.
Mark
2,61822 gold badges3131 silver badges4949 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
user6511101user6511101
Not the answer you're looking for? Browse other questions tagged c#json or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |