Split data

Hello, I am receiving in a webhook several keywords in the query but I do not know how to create several items from the one that is sent to me


{
“nodes”: [
{
“parameters”: {
“httpMethod”: “POST”,
“path”: “document”,
“options”: {}
},
“name”: “Webhook”,
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 1,
“position”: [
-1080,
150
],
“webhookId”: “1e471f09-c20e-4802-a562-b80b93a60d6e”,
“alwaysOutputData”: true
}
],
“connections”: {}
}
This is the webhook node

Welcome to the community @rogelio94 !

That is possible with a Function-Node and the following code:

return items[0].json.query.keyword.map(keyword => { 
  return { json: { keyword } };
})
1 Like

Thanks for you help :grinning:

You are welcome. Have fun!