1
Answer

Nested Array Response in Web API using c# Web Services

Yogesh Sharma

Yogesh Sharma

8y
325
1
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)