Yes, you can. but keep in mind that sending data on the client side without checking user data can lead to security problems (never trust user input) You can do this using insert collection methods. keep in mind that if you don't have _id in your json Mongodb, you will get it for you.
for example, I will create a document in the assembly "test" like this
db.test.insert( { "foo":"bar" } );
and the result may be something like this
{ "_id" : ObjectId("546c9be08e66b0571a5e3965"), "foo" : "bar" }
source share