本页显示 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
使用以下命令(在系统 shell 中)生成 BSON 文件的调试输出:
bsondump --type=debug collection.bson