jq

There’s a cool command-line JSON processor called jq — easily installed on a Mac via download or Homebrew, and even more easily tinkered with using the online playground. Here’s how easy jq makes it to get, say, a list of the titles from DF’s JSON feed:

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

Thursday, 18 May 2017