Validate BSON Files
You can validate BSON files against a JSON Schema, as well as generate a BSON instance document from a JSON Schema and vice versa.
Validate using JSON Schema
The following validation-related features are available for BSON files in Grid View
•Assign a JSON Schema to the active BSON file via the JSON Info Window.
•Assign a JSON Schema when creating a new BSON file. See Standard file-related features.
•Validate the active BSON document with the XML | Validate command.
•Validate a project folder containing BSON files by selecting the project folder in the Project Window and clicking the Validate command.
BSON instance to/from JSON Schema
You can generate a BSON instance document from a JSON Schema and vice versa.
•To generate a BSON instance from JSON Schema, make the JSON Schema the active file and select the command DTD/Schema | Generate Sample XML/JSON/YAML File.
•To generate a JSON Schema from a BSON instance, make the BSON instance the active file and select the command DTD/Schema | Generate DTD/Schema.
•To generate a JSON Schema via the JSON Info Window, make the BSON instance the active file and, in the JSON Info Window, open the dropdown menu and select Generate JSON Schema.