A Visual Studio Code extension that helps you clean up JSON files by removing duplicate objects based on a specified field.
💡 Perfect for cleaning up data exports, API responses, or any JSON array that might contain duplicates.
- ✅ Removes duplicate objects from JSON array files
- 🔍 Lets you choose which property to use for comparison
- 🔄 Works with any property in your JSON objects
- 📝 Preserves the first occurrence of each unique object
- 📊 Shows summary of deduplication results
- Open a JSON file containing an array of objects
- Right-click in the editor
- Select "Deduplicate Objects from JSON" from the context menu
- When prompted, select the property to use for deduplication (e.g., ID, name, etc.)
- The extension will remove all duplicates based on the selected property, keeping only the first occurrence
Click to expand example
[
{
"id": 793,
"quoteText": "Fortune favours the brave.",
"quoteAuthor": "Virgil"
},
{
"id": 794,
"quoteText": "Fortune favours the brave.",
"quoteAuthor": "Julius Caesar"
},
{
"id": 795,
"quoteText": "Keep building!",
"quoteAuthor": "Bob the Builder"
}
]
[
{
"id": 793,
"quoteText": "Fortune favours the brave.",
"quoteAuthor": "Virgil"
},
{
"id": 795,
"quoteText": "Keep building!",
"quoteAuthor": "Bob the Builder"
}
]
⚙️ Requirements: Visual Studio Code 1.60.0 or higher
🔧 Extension Settings: This extension does not add any VS Code settings.
📝 Release Notes: 1.0.0 Initial release of Deduplicate Objects from JSON
👨💻 About the Author: Created ❤️ by Keev Studio
📄 License: MIT