Rename Key

Hello, good morning everyone!
I’m stuck in the following JSON:
a part of my flow and decided to ask for help.
Look at the JSON below:

JSON:

[
{
"action_type":"link_click",
"value":7
},
{
"action_type":"post_reaction",
"value":1
},
{
"action_type":"video_view",
"value":51
},
{
"action_type":"landing_page_view",
"value":2
}
]

Would there be any way to rename each key to its value?
Example

{
"action_type":"link_click",
"value":7
}
{"link_click":7}

Would any of you have to rename all keys to their values?

Now assuming that each of them is an own item you can use the Set-Node:

3 Likes