[SOLVED] Is there a way to get the max value of a field in a json object that matches some condition

Is there a way to get the max value of a field in a json object that matches some condition.? I have Json file with Volume Number and Item Number fields. I need to get max of Item Number that matches current Volume number. Please somebody help.

{{ (index $array 4).Title }}, I figured it out.