Friday, 27 December 2019

shell json format . jq

you can download or install jq here:


for MAC:
brew install jq


then, you can use jq like: 

curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq '.'

more doc: https://stedolan.github.io/jq/tutorial/

No comments:

Post a comment