Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 608

Issue while parsing JSON response using jq

$
0
0

curl -H "Authorization: token " -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos///pulls?state=closed&per_page=100&page=1" | jq -r '.[] | [.number, .created_at, .state, .user.login, .title, .base.ref, .head.ref, .html_url] | @csv' | tr -d '"'

jq: error (at :4): Cannot index string with string "number"

I should get the list of Pull requests, but throwing an error.


Viewing all articles
Browse latest Browse all 608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>