Generate JSON schema & sample JSON payload

To generate JSON from the Aspect Model, proceed as follows:

  • Click the Generate on menu.

    The menu offers two options for Json generation:

    • Generate sample JSON payload

    • Generate JSON schema

If you run into errors, please make sure that your Aspect Model is valid.
If the invalid element is not highlighted with a red border, click the Validate icon to get a hint.

Generate sample JSON payload

After selecting GenerateSample JSON payload, an example payload will be generated for the current model, and it will be displayed in the following dialog:

Generate sample JSON payload
  • A preview is displayed.

  • You can now:

    • Edit the source in the preview.

    • Use the Copy to Clipboard function and continue editing with another tool.

    • Download the file locally.

Generate JSON schema

After selecting GenerateJSON Schema, a JSON schema will be generated for current model, and it will be displayed in the following dialog:

Generate JSON schema
  • A preview is displayed.

  • You can now:

    • Edit the source in the preview.

    • Use the Copy to Clipboard function and continue editing with another tool.

    • Download the file locally.