javascript - Save an array of objects in mongoDB and escape double quotes -


i trying save array of objects node mongodb.

i use:

    _id: objectid(request.body.connectionid) }, {     $set: {         status: accepted,         networks: connectedprofiles     } 

but @ mongodb record get:

"networks": "\"(\\n        {\\n        netowrk = twitter;\\n        \\\"profile_name\\\" = primary;\\n    }\\n)\"" 

any idea why escape quotes?

thanks responses. fixed issue stringify request before sending node js, , after parse it. solved problem.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -