Title
JSON Anonymizer (VS Code)
Short Description
Anonymize JSON values with realistic fake data while preserving JSON structure and keys.
🎯 Features
- In-place anonymization of the active JSON file
- Copy anonymized JSON to clipboard without changing the source file
- Create anonymized output in a duplicate file (
*.anonymized.json)
- Deterministic anonymization with optional seed
- Field/path rule overrides with precedence:
- exact path
- wildcard path (
[*])
- field name
- Strict JSON parsing with clear error handling
Screenshots / GIFs
Add screenshots or recordings under resources/ and link them here.
Example placeholders:
- Command Palette flow (
Anonymize Document)
- Before/after JSON diff
Anonymize to Duplicate File result in editor tabs
Usage
- Open a valid
.json file in VS Code.
- Run one of the commands from Command Palette:
JSON Anonymizer: Anonymize Document
JSON Anonymizer: Copy Anonymized JSON
JSON Anonymizer: Anonymize to Duplicate File
- (Optional) Configure seed/rules for deterministic or custom behavior.
Configuration
You can configure the extension in VS Code settings JSON:
{
"jsonAnonymizer.seed": "demo-seed",
"jsonAnonymizer.rules": {
"user.email": "keep",
"contacts[*].email": "email",
"address.zip": "zip",
"phone": "null"
}
}
Commands
jsonAnonymizer.anonymizeDocument
jsonAnonymizer.copyAnonymizedJson
jsonAnonymizer.anonymizeToDuplicateFile
Extension Settings
jsonAnonymizer.seed
Optional deterministic seed (string | number | null).
jsonAnonymizer.rules
Path/field strategy overrides.
Supported strategies:
keep, null, string, number, boolean
email, phone, uuid, name, url, date, ip, zip
Release Notes
See CHANGELOG.md for all versions and release details.
| |