I am able to return an JSON arrray from a WCF rest service.
[ {"Name" : "john", "age" : 23 }, {"Name" : "Petter", "age" : 21 } ]
but how can I add a name to the array. In this case, I want to add the "People" to the beginning of the array
{"People" : [ {"Name" : "john", "age" : 23 }, {"Name" : "Petter", "age" : 21 } ]}
[ {"Name" : "john", "age" : 23 }, {"Name" : "Petter", "age" : 21 } ]? I'm having the opposite problem: stackoverflow.com/questions/10073866/…