Want to import data from multiple JSON files into 1 MongoDB collection?
Using Withdata File To DB, a MongoDB JSON importer for Windows, MacOS, and Linux, you can import data from multiple JSON files into a single MongoDB collection in one go, easily and fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.
Download FileToMongo
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
Import multiple JSON files into a single MongoDB collection
Login to MongoDB -> Choose JSON files -> Set MongoDB collection options. -> Import multiple JSON files into a single MongoDB collection
Start FileToMongo, connect to MongoDB.
Click “N File To 1 Collection” at task dialog.
Select the “JSON” file type.
1. Open a folder contains JSON files.
2. Set JSON options.
3. Set MongoDB collection options.
4. Preveiw data will be in MongoDB.
5. Import multiple JSON files to a single MongoDB collection.
After importing, you can view imported data in MongoDB.
Import multiple JSON files to a single MongoDB collection in command line
Save “JSON to MongoDB” session, then you can:
- Import multiple JSON files to a single MongoDB collection in Windows command line.
- Import multiple JSON files to a single MongoDB collection in Linux command line.
- Import multiple JSON files to a single MongoDB collection in macOS command line.
Set scheduled tasks for importing multiple JSON files to a single MongoDB collection
You can schedule and automate this ” JSON to MongoDB” conversion task by:
1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.