Merging Multiple JSON Files (Advanced)
Learn how to prepare your JSON so you can batch upload easily using DropKit batch upload tool
A pre-requisite to uploading your assets in bulk on NiftyKit is to have your single JSON file ready to go. Follow the steps suggested on this page to streamline the process of uploading batch NFT's. This may look like a bit of coding, but it is a simple five minute process.
To bulk upload using JSON on NiftyKit, it is recommended that you:
Here's a step by step guide to have a batch upload ready JSON for DropKit:
Our DropKit batch upload tool accepts a single JSON file of your assets and metadata. If you have multiple JSON files or have JSON per NFT follow this simple guide to merge them into one.
3. Open up a terminal at the same folder level and run the following command:
4. After this you can find your merged JSON file....
Now that your JSON is merged into one single file, it is now easier to add asset IPFS links to your JSON.
By this time, you must have:
Follow these steps to update the
"image"field with the image IPFS link. This is a simple step-by-step guide - you do not require to know to code for this, these are 2-minute read and follow instructions.
- 1.Open your JSON file using your code editor and then press Control + F or Go to Edit tab > Replace
A "Find and Replace" pop-up will appear as shown in the image below. Once you see the find box open, click on * or Regular Expression (“regex”)
Find with regex using Visual Code Editor
2. In the Find field, type
if your file is PNG then type (\d+.png)
if jpg (\d+.jpg)
if mp4 (\d+.jpg)
3. Finally, In the replace field:
Your folder link if you are using Pinata would be
Adding asset IPFS links to your JSON using Visual Code generator
After this, press the Enter key and you should see that you have working links
Press Ctrl + S to save your JSON file. Your merged JSON file is now ready to upload to DropKit.