The output will be a JSON-encoded object.
For both analysis sets and selection lists, the object will have properties name and fields. Analysis sets will also have group and indexField, which might be null.
The fields value will be an array of objects. These objects are listed in order and describe the fields. Object properties will vary based on the field type:
-
date fields have a format property, which is either date or datetime.
-
numeric fields all have decimals. If this is null, the field holds a floating point value. Calculations have a formula, while others have a default.
-
select fields have properties (listId, listField, listFilter) that define which selection list the field is based on, and which of list's fields is selected, along with which filter (see the product field in the example below).
-
text fields have a multiLine property with a boolean value.