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
Post a Comment