
Maybe you could Deserialize Json to Datatable string json = [ĭataSet dataSet = JsonConvert.DeserializeObject(json) ĭataTable dataTable = dataSet.Tables Ĭonsole.WriteLine(row + " - " + row) i am unable to think how i can do using following, can some body help me ?ĭynamic jr = serializer.Deserialize(reader) Ĭan i write excel without creating class dynamically as below. Here i need first to create json class ( GSTR1). String monthyear = new DateTime(2018,Convert.ToInt16(o.fp.Substring(0, 2)), 1).ToString("MMM", CultureInfo.InvariantCulture) ī2bcsv(o, swFileName, sw, s1, ref s2, ref s3, ref s4) Ĭdncsv(o, out swFileName, out sw, monthyear, out s1, out s2, out s3, out s4) Ĭdnrcsv(o, out swFileName, out sw, monthyear, out s1, out s2, out s3, out s4) String swFileName = + GetUniqueName("b2b.csv", sw = new StreamWriter(swFileName, cbIsAppend.Checked) dynamic jr = serializer.Deserialize(reader) If (reader.TokenType = JsonToken.StartObject) JsonSerializer serializer = new JsonSerializer() Using (JsonReader reader = new JsonTextReader(sr))

Using (StreamReader sr = new StreamReader(s)) If (FileStream s = File.Open(fd.FileName, FileMode.Open)) MessageBox.Show("Json File Not Selected")

Ofilepath = Path.ChangeExtension(fd.FileName, "xls") json file string ofilepath = fd = new OpenFileDialog() I use following code to write a Excel file from.
