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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -