How To Rename Array key or Column

Hi ,

I have an array and I want to change the key/column names of it.
“Item”:"Pen ",

i want to rename the Item as WM_Item and Desc as WM_Desc

Hi @sjakathi

Please check the attached sample pipeline:

SL_Community_2021_02_02.slp (3.6 KB)

Hope this will help.

Spiro Taleski

1 Like

This expression in a Mapper snap:
$ => value.mapKeys((value, key) => "WM_" + key))

will add the ‘WM_’ prefix to the keys for each item in this Item list.

Having it mapped to the target Items.Item will replace the old value with your desired output.

1 Like

Thanks you all for the reply it worked…