I try to slice the json file but it's giving me the error:
jq: error (at result2.json:0): Cannot index array with string "url"
I am trying to parse the following json file
I want to access six reference links from this list. I tried using the following code but it's giving me an error.
jq -r .result.CVE_Items[].cve.references.reference_data[0:5].url result2.json
I am fairly new to json parsing so i am having a tough time overcoming these issues :(