Closed khusseini closed 7 years ago
How your input JSON looks like?
For this case, something like
{
items: [
{ name: somename, other: hello },
{ name: somename2, other: world }
]
}
then this expression
{
attachments: $.items[ { title: @.name } ]
}
With this outcome
{
attachments: [
{title: somename},
{title: somename2}
]
}
Unfortunately not. ObjectPath is a query language and your example is a schema conversion task. I thought about extending OP to make it possible, but I did not find enough time to do it.
Hey there, I was wondering if it was possible to do recursion of expressions?
Like so:
Which would result in: