I am trying to group pairs of two in a flat list, note that the amount of pairs can be variable (e.g. 0, 2, 4, 6 and so on).
See intended input/output.
Input:
{
"coordinates": [
1.1,
5.1,
1.2,
5.3,
1.3,
5.5
]
}
Output:
{
"coordinates": [
[1.1, 5.1],
[1.2, 5.3],
[1.3, 5.5],
]
}
Is this something that can be easily achieved using a Jolt transformation?