I have a code like this
{name: 'Data Weave'} mapObject {(upper $$ ) : $}
which dynamically takes map object and upper cases key. below is the output
{
"NAME": "Data Weave"
}
When I remove parenthesis that are enclosed to "upper" keyword. data weave is throwing error like this.
I have a syntax confusion exactly where to use parenthesis in the data weave language. in the above code why there is need to use parenthesis. how the compiler interprets the conditions or expression that are enclosed between parenthesis.