Open dbug-river opened 1 year ago
Hi @dbug-river
If you are expecting the output is like below
{
"input" : [ "a:c", "a:d" ],
"input_substring" : [ "a", "a" ]
}
You can use the below spec
[
{
"operation": "modify-default-beta",
"spec": {
"input_split": "=split(':',@(2,input))"
}
},
{
"operation": "shift",
"spec": {
"*": "&",
"input_split": {
"*": {
"0": "input_substring"
}
}
}
}
]
Hi, would it be possible to highlight why split on a string of array works while substring does not? Example
input
spec
output
I'm expecting the output to have
input_substring
containing["a", "a"]
.Your help will be greatly appreciated and thanks in advance