Nav

to

to(Number, Number): Range

Returns a range within the specified boundaries. The upper boundary is inclusive.

Transform

        
     
1
2
3
4
5
6
%dw 2.0
output application/json
---
{
    "myRange": 1 to 10
}
Output

        
     
1
2
3
{
    "myRange": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}