Collection
An object with key: value pairs
Specification
spec
Type:
ArrayDescription of the collection.
Array of parameters. Standard parameters syntax is used.
{
"name": "myCollection",
"type": "collection",
"label": "My Collection",
"spec": [
{
"name": "email",
"type": "email"
},
{
"name": "phone",
"type": "text"
}
]
}sequence
Type:
BooleanIf set to
true, all properties of the object will be in the same order as they are defined in thespec.
Examples
Simple collection
Create a collection by specifying its parameters in the spec.

[
{
"name": "contact",
"spec": [
{
"name": "firstname",
"type": "text",
"label": "First name"
},
{
"name": "lastname",
"type": "text",
"label": "Last name"
}
],
"type": "collection",
"label": "Contact"
}
]{
"contact": {
"lastname": "Doe",
"firstname": "Jane"
}
}Collection in a collection
Collections can be also nested in another collection.

[
{
"name": "contact",
"spec": [
{
"name": "firstname",
"type": "text",
"label": "First name"
},
{
"name": "lastname",
"type": "text",
"label": "Last name"
},
{
"name": "address",
"label": "Address",
"type": "collection",
"spec": [
{
"label": "Street",
"name": "street",
"type": "text"
},
{
"label": "City",
"name": "city",
"type": "text"
}
]
}
],
"type": "collection",
"label": "Contact"
}
]{
"contact": {
"address": {
"city": "Prague",
"street": "Novakovych"
},
"lastname": "Doe",
"firstname": "Jane"
}
}Last updated

