mongosh
exposes the Node.js BSON parser to
help you transform your data. Use the EJSON
interface when you need
to transform BSON data.
EJSON Method | Use |
---|---|
Convert Extended JSON objects to BSON objects. This method is useful to import JSON data from external applications. | |
Convert BSON objects to strings. This method is useful to
transform | |
Convert BSON objects to Extended JSON representation as JavaScript objects. This method is useful to export JSON data for external data transformation applications. | |
Convert strings to JSON. This method is useful to transform inputs. |
For additional EJSON capabilities, see the npm EJSON documentation.