# How to use Split node using fixed length option

In this tutorial we will demonstrate to split an array into multiple array records based on specified length by which the array has to be sliced.

  1. TBD . We will be providing an json array as input to the split node. Following is the payload used in this use case.

    [1,2,3,4,5,6,7,8]
    
  2. Drop the split node from the routing section of the pallette to the canvas. Double click the node to open the editor and set the fixed length value as 2 under the Array section. Click save .

  3. Wire the TBD to the split node.

  4. Drop the debug node and name it as Completed.

  5. Click on TBD to test the flow.

Observation

Based on the split node length setting of 2 the array is split in to 4 array of 2 records each. In the debug panel you can observe the debug node (Completed) printed 4 times.

[1,2]
[3,4]
[5,6]
[7,8]