BSONDUMP(1) mongodb-manual BSONDUMP(1)
bsondump - MongoDB BSON Utility
The bsondump converts BSON files into human-readable formats, including
JSON. For example, bsondump is useful for reading the output files gen-
erated by mongodump.
bsondump is a diagnostic tool for inspecting BSON files, not a tool
for data ingestion or other application use.
Returns information on bsondump options and usage.
Increases the amount of internal reporting returned on standard
output or in log files. Increase the verbosity with the -v form
by including the option multiple times, (e.g. -vvvvv.)
Runs bsondump in a quiet mode that attempts to limit the amount
of output. This option suppresses:
o output from database commands
o replication activity
o connection accepted events
o connection closed events
Returns the bsondump release number.
Validates each BSON object before outputting it in JSON format.
By default, bsondump enables --objcheck. For objects with a
high degree of sub-document nesting, --objcheck can have a small
impact on performance. You can set --noobjcheck to disable
Changed in version 2.4: MongoDB enables --objcheck by default,
to prevent any client from inserting malformed or invalid BSON
into a MongoDB database.
New in version 2.4.
Disables the default document validation that MongoDB performs
on all incoming BSON documents.
Limits the documents that bsondump exports to only those docu-
ments that match the JSON document specified as '<JSON>'. Be
sure to include the document in single quotes to avoid interac-
tion with your system's shell environment.
Changes the operation of bsondump from outputting "JSON" (the
default) to a debugging format.
The final argument to bsondump is a document containing BSON.
This data is typically generated by bsondump or by MongoDB in a
By default, bsondump outputs data to standard output. To create corre-
sponding JSON files, you will need to use the shell redirect. See the
bsondump collection.bson > collection.json
Use the following command (at the system shell) to produce debugging
output for a BSON file:
bsondump --type=debug collection.bson
MongoDB Documentation Project
2011-2014, MongoDB, Inc.
2.6 March 18, 2014 BSONDUMP(1)