Build a JSON string which have the Status and the total number of items under each status
Sorry, the community software butchered my post. There were some images attached ;)
I had a simpler structure like this:
[
{"Status": In Progress},
...
]
Because of the deeper nesting in your JSON, the xpath expressions must be something like these:
'//Item/Status/Value/text()'
and
concat('count(//Item[Status/Value="', item(), '"])')