How to fetch values from below array?

Hello Team,

I have my input coming like this,

[{"@propertyTypeKey":“Active_Flag”,"@propertyTypeOwner":“4918”,“value”:“Y”},

{"@propertyTypeKey":“Data_flag”,"@propertyTypeOwner":“4918”,“value”:"N}]

I need to get my output like below,
“Active_Flag” = “Y”
“Data_flag” = “N”

Added above is a small example like this I have an big array from that i need to extract key and values as mentioned in the sample example. Could any of you please help me with this requirement.

Hi @Manigandan,

Use this expression
{array}.map(x => {[x[’@propertyTypeKey’]]: x.value})

Regards
Viktor

3 Likes

Hello @viktor_n , you rock!!! It is working, thank you so much for the help!