I am new for muleSoft and I have json payload like below ,I want to filter out the below json payload characters[] array which is having name as 'WBB' and priority as '1'
Can some one help me please.
Json Payload
{
"status": "Success",
"offers": [
{
"id": 100,
"name": "Test1",
"category": {
"characters": [
{
"name": "WBB",
"priority": 1
},
{
"name": "ILL",
"priority": 2
}
]
}
},
{
"id": 200,
"name": "Test2",
"category": {
"characters": [
{
"name": "WLS",
"priority": 1
},
{
"name": "DLL",
"priority": 2
}
]
}
},
{
"id": 300,
"name": "Test3",
"category": {
"characters": [
{
"name": "INTERNET",
"priority": 1
},
{
"name": "FIBER",
"priority": 2
}
]
}
}
]
}
Expected payload
{
"name": "WBB",
"priority": 1
}