This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| from collections import defaultdict | |
| import sys | |
| def validate_json_structure(data): | |
| """Validate the basic structure of the Bitwarden JSON export""" | |
| if not isinstance(data, dict): | |
| raise ValueError("Invalid JSON format: Root must be an object") | |
| if 'items' not in data: |