Splice
1 min
oSplits a given JSON List into two based on splice index and splice rows. If the list has 5 rows and the splice_index is 0 and splice_rows is 3, then the output will have two lists. First one will have the first 3 items and the second one will hold the remaining seven.
The function can be used to extract a range from anywhere in the list by configuring the splice_index and splice rows accordingly.
Note: The splice_index function is a zero based index. Which means that 0 refers to the first item in the list.
API Definition
Splice API
Call the following API:
POST
https://orca.pathfix.com/functions/list/splice
{
"input": [
{
"user_id": "[email protected]"
},
{
"user_id": "[email protected]"
},
{
"user_id": "[email protected]"
}
],
"splice_index": "0",
"splice_rows": "1"
}