My datatable is in below format
MCuserid Firsatname address1 address2 city educationinfo institute degree
1760 Rickert vbn addresstwo hyderabad Second College Second Degree
1766 Abhinav jhgjkhk testaddress mtech
1766 Abhinav jhgjkhk testaddress BTech
I need output in following json format in c#
[
{
"MCUserID" : 1760,
"FirstName": "Rickert",
"Address1" : "vbn",
"Address2" : "address two",
"city : "hyderabad"
"EducationInfo": [
{
Institute: "Second College",
Degree: "Second Degree",
}
]
},
{
"MCUserID" : 1766,
"FirstName": "Abhinav",
"Address1" : "jhgjkhk",
"Address2" : " test address",
"city : ""
"EducationInfo": [
{
Institute: "",
Degree: "mtech",
},
{
Institute: "",
Degree: "btech",
}
]
} ]