This tool is designed to obfuscate survey JSON schemas by replacing titles, descriptions, placeholders, and other meaningful texts with randomized sequences of characters. The obfuscation may be useful if you need to attach a survey JSON schema to a bug report for investigation by the SurveyJS team and want to strip the schema of all sensitive data.
Usage:
-
Clone the
survey-library
GitHub repository. -
Open the console in the root folder and build the
survey-core
bundle:npm run build_core
-
Run the following command:
node .\utils\json_obfuscator.js [path\to\the\survey\json\schema.json]
This command produces a file named as the original with suffix obf
. For example, nps.json
→ nps.obf.json
. The obfuscated file is placed in the same folder as the original.