bsondump Examples
On this page
This page shows examples for bsondump
.
Run bsondump
from the system command line, not the mongo
shell.
By default, bsondump
outputs data to standard output. To
create corresponding JSON files, you can use the
--outFile
option:
bsondump --outFile=collection.json collection.bson
Use the following command (at the system shell) to produce debugging output for a BSON file:
bsondump --type=debug collection.bson