//While Saving this JSON to mongodb
{
"data":{
"username" : "xxxx",
"servername" : "[email protected]",
"sender_email" : "[email protected]",
"port_no" : "134",
"password" : "hello123",
"confirm_password": "hello123",
"notifiction":{
"recipient":{
"run_reports":["[email protected]",
"[email protected]",
"[email protected]"],
"run_analysis":["xxxgmail.com",
"[email protected]", "[email protected]","[email protected]"]
}
}
}
}
// In my database, its saves like
bodyObj { data:
{ username: 'balajikr',
servername: 'mail.balaji.com',
sender_email: '[email protected]',
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