Sample Input:
`[
{
"elements": [
{
"shadow": {
"h": 3,
"v": 2,
"blur": 1,
"color": "#808080"
}
}
]
}
]`
Desired Output:
`[
{
"elements": [
{
"shadow": {
"offsetX": 3,
"offsetY": 2,
"blur": 1,
"color": "#808080"
}
}
]
}
]`
Trying to run the following:
`[
{
"operation": "shift",
"spec": {
"elements": {
"*": {
"shadow": {
"h": "elements[&1].shadow.offsetX",
"v": "elements[&1].shadow.offsetY",
"blur": "elements[&1].shadow.blur",
"color": "elements[&1].shadow.color"
}
}
}
}
}
]`
I am either able to successfully convert values within “shadow” or keep “shadow” in the “elements” array. Both events are not happening together. Would love some help!
New contributor
Rashesh Majithia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.