BSON Inspector
A Visual Studio Code extension that allows you to inspect BSON (Binary JSON) files by viewing their content as formatted JSON.
Features
- Right-click on any
.bson file in the VS Code explorer
- Select "View as JSON" from the context menu
- The BSON file will be deserialized and displayed as formatted JSON in a read-only tab
- No need to save - the JSON view is read-only and doesn't create unsaved changes
- Error handling for invalid or corrupted BSON files
Usage
- Install the extension
- Open a workspace containing BSON files
- In the Explorer panel, right-click on any file with the
.bson extension
- Select "View as JSON" from the context menu
- A new tab will open with the BSON data displayed as formatted JSON
Installation
From Source
- Clone or download this extension
- Open the extension folder in VS Code
- Press
F5 to run the extension in a new Extension Development Host window
- Test the extension with BSON files
Packaging
To package this extension for distribution:
npm install -g vsce
vsce package
Requirements
- Visual Studio Code 1.60.0 or higher
- Node.js for development
Known Issues
- Only supports standard BSON format
- Large BSON files may take time to process
Release Notes
1.1.2
- Updated: Changed display name to "BSON Inspector" for uniqueness
- Improved: Better extension description and branding
1.1.0
- Improved: JSON output now opens in read-only tabs (no need to save)
- Improved: Better tab naming with original filename
- Enhanced user experience with virtual document provider
1.0.0
- Initial release
- Basic BSON to JSON conversion
- Explorer context menu integration
| |