What is the proper setup for nested JSON arrays?

I apologize for what must be a common beginner’s question but how should i be setting up my collections to include an array of values?
I am looking to have my response formatted in a similar structure to this example:

{
“name” : “item name”,
“location” : 3742,
“notes” : [ “note about this item”, “note number 2”, “note number 3” ],
“color” : “goldenrod”
}

I do not see an obvious field type to provide an array.
Is the only way to create an object? not really ideal for have the data populated by simple means.

Any guidance would be greatly appreciated.
Thank you in advance for your thoughts and taking the time to look over my question.

@haa you need a set field, check the documentation on the field types - https://getcockpit.com/documentation/reference/fieldtypes

for your case something like below may work:

{
  "fields": [
    {
      "name": "name",
      "label": "Name",
      "type": "text"
    },
    {
      "name": "location",
      "label": "Location",
      "type": "text"
    },
    {
      "name": "notes",
      "label": "Notes",
      "type": "repeater",
      "options": {
        "field": {
          "type": "text",
          "label": "Note",
          "display": "$value"
        }
      }
    },
    {
      "name": "color",
      "label": "Color",
      "type": "select",
      "options": {
        "options": "Color1, Color2, Color3"
      }
    }
  ]
}

Another field, that produces simple arrays is the tags field.

And if you don’t want anything in one set field, you can create a field “notes” as repeater with these options (copied/pasted from @pauloamgomes example above) :

{
  "field": {
    "type": "text",
    "label": "Note",
    "display": "$value"
  }
}

Thank you both. @raffaelj & @pauloamgomes for your insight and example. I believe I have a working solution now.