I want to get the count of faultInfoLst element from the below json array. I want to do an operation based on the count of that element. Help me to get count as I have to set it in session variable in mule flow.
[{"TaskInfo":
{"faultInfo":
{
"errCode":"",
"errDesc":"",
"errSystem":""
}
}
},
{"TaskInfo":
{"faultInfo":
{
"errCode":"",
"errDesc":"",
"errSystem":"",
"errStack":""
}
}
}]