//While Saving this JSON to mongodb
{
"data":{
"username" : "xxxx",
"servername" : "yyy@gmail.com",
"sender_email" : "zzz@gmail.com",
"port_no" : "134",
"password" : "hello123",
"confirm_password": "hello123",
"notifiction":{
"recipient":{
"run_reports":["xxx4@gmail.com",
"yyyyn@gmail.com",
"yyy@gmail.com"],
"run_analysis":["xxxgmail.com",
"yy@gmail.com", "yyy@gmail.com","xxx@gmail.com"]
}
}
}
}
// In my database, its saves like
bodyObj { data:
{ username: 'balajikr',
servername: 'mail.balaji.com',
sender_email: 'amsa@gmail.com',
port_no: '1324',
password: 'hello123',
confirm_password: 'hello123',
notification: { recipient: [Object] } } }
recipients are not saved in my db Help me how to do it Thanks in Advance