How to export scene json on the server

Hello all! Can you explain me what is best way to save scene on server? I use express with mongodb. Thank you very much.

Please add more detail to your post

Your post has been flagged since it is lacking detail, has already been asked or is easily answered using a search engine.

Please add more detail, for example:

Your post will be reviewed in 24 hours and if it has not improved it will be deleted.

You will be free to make a new post in that case.