Request: the first failed job
Input:
id: 1
ok: yes
id: 2
ok: no
id: 3
ok: no
jq program: first(.[] | select(.ok | not))
Output:
id: 2
ok: no