Prepare a JSON schema

When you want to create a JSON schema that can be used from multiple projects (scripts), create the schema as a schema resource.

Description

In this scenario, create a JSON schema with the following structure:

[ 
    { 
        "id":"1", 
        "first_name":"John", 
        "last_name":"Smith", 
        "email":"jsmith@example.com", 
        "division":"Sales", 
        "ip_address":"198.51.100.0" 
    } 
]

Procedures

Create a JSON schema resource

  1. Select > HULFT INTEGRATE > Schemas.

  2. On the Schemas page, select Add.

  3. In step General on the Schemas > Add New page, set the schema information as shown below.

    Field name

    Setting (example)

    Name

    Employee JSON Schema

    Workspace

    Personal

    Description

    (Optional)

    Type

    JSON

    JSON definition

    Enter the text described in Description.

    Note

    To import a JSON file with Import, use UTF-8 as the character code of the JSON file.

  4. Select Validate. If you have validation errors, fix them.

  5. Select Next.

  6. In step Summary, confirm that the settings are correct, and then select Finish.