Meghana

Meghana

  • 1.3k
  • 404
  • 473

how to Deserialize a JSON string and copy to two different datatables

Jan 31 2024 10:38 AM

Hi

I have the following sample JSON where i want to split it and copy to 2 different datatables like

ID,Name & Description to one table and  Distributors data to another table Kindly help me with this

[
   {
      "Id":"123",
      "Name":"abc",
      "Description":"abc company",
      "Distributors":[
         {
            "DName":"joe",
            "LastName":"BIDEN",
            "Email":"[email protected]"
         },
         {
            "DName":"Donald",
            "LastName":"TRUMP",
            "Email":"[email protected]"
         }
      ]
   }
]

 


Answers (4)