Installation

brew install jq

TODO: I need to document this

curl -s https://daringfireball.net/feeds/json | jq '.items[].title'

Obviously ./hockeyNameToIdMapping.json would usually be living outside the Bash script - a Gist perhaps?

If you want to put comments in JSON then use JSmin to remove them.

See JSON Feed for more interesting stuff.

Some Tutorials

  • https://zerokspot.com/weblog/2013/07/18/processing-json-with-jq/
  • https://stedolan.github.io/jq/tutorial/
  • https://robots.thoughtbot.com/jq-is-sed-for-json
  • https://github.com/stedolan/jq/wiki/Cookbook
  • http://blog.librato.com/posts/jq-json