Yogesh Sharma

Yogesh Sharma

  • NA
  • 144
  • 46.1k

Nested Array Response in Web API using c# Web Services

Jun 20 2016 1:45 AM
Dear all friends,
 
if we want to get the response as below, then what kind of code should we conduct ???
 
[
{
"Manager": "Mahesh Chopra",
"Depart": "ASP.NET",
"Role": "Program Manager",
"Employee": [
{
"Name": "ABC"
},
{
"Name": "xyz"
}
]
}
]
 
In this scenario we have manager named mahesh which has one department named asp.net, and has some employee's which have worked under manager named mahesh.
 
So, if i want to get this type of response in web api using asp.net # web services , then what type of code should i conduct ???
 
Thanks.
 
Yogesh Sharma 

Answers (1)