Edit online

Learn Document Structure When JSON Schema is not Detected

When there is no JSON schema associated with a JSON document, Oxygen XML 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 Editor > Content Completion 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:
  1. Open the JSON document that will be used to create the schema.
  2. Go to Document > JSON Document > Learn Structure (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.
  3. Go to Document > JSON Document > Save Structure and enter the file path for the JSON schema.
  4. Click the Save button.