Passing arrays and objects to custom module

Hopefully a quick question - I've looked but couldn't see the answer anywhere here or in the docs.

I'm writing a custom module (Node) and I need to pass arrays and objects to it. How do I enter that in the hjson so it shows in the UI?

I mean as a variable under Properties. E.g. for a text input, it would be:

{name: 'input_name', optionName: 'input_name', title: 'Some title', type: 'text', required: true, defaultValue: ' ', help: 'Some help text', serverDataBindings: true, allowPaste: true}

So I'm looking for the equivalent for an array or an object. I've tried:

{name: 'array_name', optionName: 'array_name', title: 'Array title', type: 'array', required: true, defaultValue: , help: 'A array to pass.', serverDataBindings: true, allowPaste: true}

The module expects the input (when required is set to true) but it doesn't appear in the UI with all the text inputs. So how do I pass the array?

Thanks

There is no "special" type for array to pass to custom module.

serverDataBindings: true

Just make sure you have serverDataBindings: true - and from Wappler UI just select an array to pass your custom extension module. (SQL Query output for instance).

Ah - I was overthinking it. I guess it just gets passed as a string. Switched it back to text and it worked perfectly.

Thanks