In Mulesoft Dataweave I want to map an object to an array.
Input:
[
{
"id": 12, "name": "sun", "age": 25
},
{
"id": 13, "name": "moon", "age": 25
},
{
"id": 14, "name": "pluto", "age": 28
},
..... etc.
]
And the result must be this:
[12,13,14]
I have tried it with a map but it does not wor because it seems I am tied to using json objects.
How can I solve this ?