Closed smartrics closed 4 months ago
Hi smartrics. You can start with using a modify spec, then group by wilcards $ vs. @ within a shift such as
[
{
"operation": "modify-default-beta",
"spec": {
"label": "=concat(@(1,Make),' ',@(1,Model),' ',@(1,ID))"
}
},
{
"operation": "shift",
"spec": {
"*": {
"$": "properties[#2].key",
"@": "properties[#2].value"
}
}
}
]
Awesome! thanks for the tip
You can follow me on SO , have a nice day!
Hi - I have this array
and I want to transform it into
I have this spec:
and I can't see what I am doing wrong as the label isn't being populated with what I expect. any hints is much appreciated cheers