Closed naveenpi closed 4 months ago
i tried something like this but did not work
[{
"operation": "modify-overwrite-beta", "spec": { "attributes": { "*": "=substring(@(1,&),5,10)" } } }]
Hi @naveenpi, the jolt you made is almost right, there are just some little improvements to do for make it work:
So the correct jolt should be something like this:
[
{
"operation": "shift",
"spec": {
"attributes": {
"*": {
"$": "@0"
}
}
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"*": "=substring(@0,4,9)"
}
},
{
"operation": "shift",
"spec": {
"*": {
"$": "attributes.@0"
}
}
}
]
Hope I helped
thank you it worked
i have following input:
{ "attributes": { "ABC_BCKHL": "123", "ABC_DHBLD": "234", "ABC_KKCAJ": "345", } }
EXPECTED OUTPUT: { "attributes": { "BCKHL": "123", "DHBLD": "234", "KKCAJ": "345", } }
Please give the solution using modify-overwrite-beta operation