A simple tutorial of JQ

Show how JQ could be used to query a JSON with a lot of possibilities. For these examples I am using the output derived from a openQA API query.

openqa-cli api --host http://openqa.suse.de /jobs limit=5000 result="failed" latest=1 >output.failed.json

To know more about API query, please visit Cris’ tutorial

JQ is huge, so I am only explaining some useful examples derived from some tickets when I was working in openQA and tools team at SUSE. To know more about JQ please visit https://stedolan.github.io/jq/

[]
howto  tutorial  jq  bash