My jq killer:
function ruby_json {
ruby -e "require 'json'; require 'active_support/all'; puts JSON.parse(STDIN.read)$1"
}
Performs/prints arbitrary ruby over a readily available representation of the JSON object coming from stdin.Example:
curl the_endpoint | ruby_json "['funnels'].map{|a| puts a.to_i * 2 }"