mongodb document contains $,the result is wrong

I met a problem , when i insert document into mongodb with nodejs,the result is not

correct.Because the document contains the symbol of $,it conflict with mongodb's origin

operator $.

Can anybody help to solve this problem.Thank you!!!

See here for restrictions in key names in MongoDB documents:

"The '$' character must not be the first character in the key name."

Other locations of $ character are fine, either in a key name or field value (if it's a string).