Closed cmclopes closed 4 months ago
Hi @cmclopes, this JOLT should work
{
"operation": "shift",
"spec": {
"input": {
"payment": {
"*": {
"*": "&2.[&1].&"
}
}
},
"temp": {
"*": {
"recipientId": "payment.[&1].&"
}
}
}
}
]
If there is anything unclear, feel free to ask me or, if you want, go check a guide i wrote on how to use jolt in my github :)
@LucaBiscotti Thank you!
I'm sure I'm missing something, but given this JSON input:
What would the jolt spec be to achieve this output:
The idea is to look into the temp array where the
payment[*].id == temp[*].transferId
and add thetemp[*].recipientId
into the respective object in the payment array.