I was trying to build a dynamic select statement and I've found that when I try to put the Map statement inside a variable it doesn't work when selecting from an array.
This is the array:

This is the map statement: {"a" : "@item()['a']","b" : "@item()['b']","c" : "@item()['c']"}

This is the select using the variable as well as another select that uses the same text:

Here are the results. The First Select doesn't give me the correct array results but the second one works as expected:

This it just impossible to use a variable here or is there something wrong?