How to find the last element in an array using jsonpath

- name: Get Operator StartingCSV - {{ operator_name }}
  command: oc get packagemanifest {{ operator_name }} -n openshift-marketplace -o jsonpath='{.status.channels[-1:].currentCSV}'
  changed_when: false
  register: reg_operator_csv
Next