I have following JSON data fetched from API and saved in object in C# and want it to insert in SQL database.
{
"6389": {
"Offer": {
"id": "6389",
"name": "Swim",
"description": "Incent",
"require_approval": "1",
}
},
"6141": {
"Offer": {
"id": "6141",
"name": "Express",
"description": "Incent",
"require_approval": "1",
}
},
"5677": {
"Offer": {
"id": "5677",
"name": "Alive",
"description": "",
"require_approval": "1",
}
},
"6669": {
"Offer": {
"id": "6669",
"name": "All",
"description": "Incent\r\",
"require_approval": "1",
}
},
"6767": {
"Offer": {
"id": "6767",
"name": "App",
"description": "",
"require_approval": "1",
}
}
}
and i want to save the above JSON in below format of SQL database table.
ID name description require_approval
6389 Swim Incent 1
6141 Express Incent 1
5677 Alive 1
6669 All Incent/r/ 1
6767 App 1
Thanks in advance.