Mongodump --out specifies the directory, not the format

In the video we’re told that --out specifies the file. The narrator performs the export and uses less sales.json to show the data in json.

However mongodump --help states that --out is for the output directory. When I perform the command I get a directory named sales.json and it has subdirectory of BSON data.

mongodump is for binary data(bson)
You have to use mongoexport for json
Video may be explaining about mongoexport?


Thank you, I missed that detail!