Learn Document Structure When JSON Schema is not Detected
When there is no JSON schema associated with a JSON document, Oxygen JSON Editor can learn the document structure by parsing the document internally to provide an initialization source for content completion and validation.
This feature is controlled by the Learn on open document option that is available in the preferences page. This feature enabled by default. If you want to disable it, deselect the Learn on open document option.
You can choose to create a schema from the learned structure and save it as a file using the Learn Structure and Save Structure actions.
Creating a JSON Schema from Learned Document Structure
To create a JSON schema from the learned structure of a JSON document,
follow these steps:
- Open the JSON document that will be used to create the schema.
- Go to Ctrl + Shift + L (Command + Shift + L on macOS)). The Learn Structure action reads the mark-up structure of the current document. A Learn completed message is displayed in the application status bar when the action is finished. (
- Go to and enter the file path for the JSON schema.
- Click the Save button.