How to convert mongo doc to Json in nodejs?

From mongoose query i git the doc, I want to convert it to JSON object and use the json object for other places, What is the best way to do it?

As per my suggestion, the best, easy, and efficiant way is JSON.parse(JSON.stringify(doc)

Log in to reply