Open pravesh-curefit opened 3 years ago
does this help
[
{ "operation": "shift", "spec": { "id": "id", "attributes": { "@(1,name)": "attributes.name", "age": "attributes.age" } } } ]
[ { "operation": "shift", "spec": { "id": "id", "attributes": { "@(1,name)": "attributes.name", "age": "attributes.age" } } } ]
Input
Output
I want to carry out this transformation. I tried with the below spec
But this changes
attributes
field into an array. What should be the right spec used here?