Skip to main content Skip to complementary content

Creating structures with enumerated values

Create an input structure and an output structure containing enumerated values.

This can be done by using a schema that includes the enumerated values, or the values can be added manually in the structure.

Procedure

  1. Create your input and output structures based on the JSON samples provided above.

    For more information, see Creating a structure from a sample document.

    In this example, the input structure is named customer_input and the output structure is named customer_output.

  2. Open the input structure, right-click tier and click New Element to create an element named One, then repeat this step to create the elements Two and Three.
  3. Click the new One element, click the Read-Only drop-down list, and select Editable.
  4. Change the value of Element Type to Value.
    This indicates that One is one of the possible values for the tier element.
  5. Repeat the previous step for the Two and Three elements and save your structure.
  6. Open the output structure, and create three new elements under status: Platinum, Gold, and Silver.
  7. Edit the three new elements to change the value of Element Type to Value and save your structure.

Results

Your structures are created and you have added the fixed list of values. You can now create the map.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!