Open debuggerrr opened 4 years ago
spec can't have spec , i think below spec might helpful for you.
[
{
"operation": "shift",
"spec": {
"*": {
"engines": {
"@": "&",
"*": {
"@(2,ownerId)": "engines[&].ownerId",
"@(2,vehicleId)": "engines[&].vehicleId"
}
}
}
}
}
]
I have below input:
I need the expected output as below:
I tried below spec but it doesn't give the expected output:
Output:
Please let me know where I went wrong.