Creating a JSON schema in the schema library (DataStage)

Last updated: Mar 12, 2025
Creating a JSON schema library (Hierarchical Data stage)

You can create a library and import the JSON file to create a JSON schema.

About this task

If you select a JSON instance, the contract library derives an XML schema from the JSON instance and imports the derived schema into the contract library.

Procedure

  1. Click Open libraries from the Assembly Editor to open the Library page.
  2. Click New library +.
  3. In the New schema library window, enter the name of the library, and then click Add.
  4. Select the library that you created, and then click Add resource to import the JSON file.
  5. Select the JSON file from the list of files. The file type can be .json, .jsn or .jsd
  6. Click Close to close the Libraries page.
    The contract library derives an XML schema from the JSON file.