Hi i have a set of record with below format (the item ID is not in the format "key" : "value" and it consists thousand of records)
{
"items":[
{
"20057":{
"name":"Name 20057",
"item_name":"name_20057"
}
},
{
"20060":{
"name":"Name 20060",
"item_name":"name_20060"
}
}
]
}
and i need to insert all of them into database as below
ItemID | Name | Item_Name
----------------------------------
20057 | Name 20057 | name_20057
20060 | Name 20060 | name_20060
Is there any way to do this using SQL query or ASP.NET?
UPDATE
I tried to do it with .net and deserialize it. But i failed get the ItemID since it is not in this format "key" : "value"