Want to import data from JSON file to MongoDB collection?
Using Withdata software FileToMongo, a MongoDB JSON importer, you can import data from JSON file to MongoDB collection 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.
- Support Windows, Linux, macOS.
Import JSON data To MongoDB
Login to MongoDB -> Choose JSON file -> Set MongoDB collection options -> Import JSON to MongoDB
Start FileToMongo, connect to MongoDB.
Click “1 File To 1 Collection” at task dialog.
Select the “JSON” file type.
1. Open a JSON file.
The source JSON file like this:
2. Set MongoDB collection options.
3. Preview data will be in MongoDB collection.
4. Import JSON data to MongoDB collection.
After importing, you can view imported data in MongoDB collection.
Import JSON to MongoDB in command line
Save session, and then create .bat file for Windows command line, or .sh file for Linux / macOS.
Set scheduled tasks for importing JSON to MongoDB
You can schedule and automate this “JSON to MongoDB” conversion task by:
1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.