Hi, I use function node to create this object from this array:
My array:
[
"text 1",
"text 2",
"text 3"
]
My object I want to return:
return [
{
json: {
message: "text 1"
}
},
{
json: {
message: "text 2"
}
},
{
json: {
message: "text 3"
}
}
]