I would do it this way:
{
"fields": [
{
"name": "title",
"type": "text",
"display": true
}
]
}
The Screenshot above is from two sets and the first set is nested.
Set 1:
{
"fields": [
{
"name": "title",
"type": "text",
"label": "Title",
"display": true
},
{
"name": "from",
"type": "set",
"display": true,
"options": {
"fields": [
{
"name": "date",
"type": "date",
"label": "Date",
"display": true
},
{
"name": "time",
"type": "time",
"label": "Time",
"display": true
}
]
}
},
{
"name": "to",
"type": "set",
"display": true,
"options": {
"fields": [
{
"name": "date",
"type": "date",
"label": "Date",
"display": true
},
{
"name": "time",
"type": "time",
"label": "Time",
"display": true
}
]
}
}
]
}
Set 2:
{
"fields": [
{
"name": "test1",
"type": "text",
"label": "Super"
},
{
"name": "test2",
"type": "tags",
"display": true
},
{
"name": "test3",
"type": "asset",
"display": true
}
]
}
PR: https://github.com/agentejo/cockpit/pull/909