This n8n workflow is designed to demonstrate a basic data transformation process. It begins with a "Mock Data" node, which acts as a data source. This node generates a simple array of strings: "item-1", "item-2", "item-3", and "item-4". These items are then passed to the subsequent "Function" node. The "Function" node takes the array of items received from the "Mock Data" node and iterates through each element. For every item in the array, it creates a new JSON object where the original item is nested under a key named "data". Essentially, it transforms each string into a structured JSON object with a single key-value pair. For example, "item-1" becomes { "data": "item-1" }. The primary benefit of this workflow is its clarity in illustrating how to create mock data and then process it using a custom JavaScript function within n8n. It showcases a fundamental pattern of receiving data, applying a transformation, and outputting the modified data in a new structure. This pattern is crucial for many automation tasks, such as preparing data for API calls, formatting data for databases, or manipulating data before sending it to other services. The workflow is simple yet effective in teaching basic data manipulation techniques in n8n.