I am creating a route in node.js
and this is my code:
schedule.get('/conference/schedule_participants/:circle/:schedId', function(req, res) {
if(req.schedId){
getParticipants( req.params, function(contacts){
results.contacts=contacts;
res.json(contacts);
});
}else{
res.json(contacts);
}
});
the output in my browser is like this :
[
{
"id":212,
"extenrealname":"UID1",
"name":"0090001513",
},
{
"id":214,
"extenrealname":"UID3",
"name":"0090001515",
},
]
How can i get name element so that my output will be like:
[
{
"name":"0090001513",
},
{
"name":"0090001515",
},
]
Thanks :)