jq - line JSON processor
jq [options...] filter [files...] jq can transform JSON in various ways, by selecting, iterating, reduc- ing and otherwise mangling JSON documents. For instance, running the command jq 'map(.price) | add' will take an array of JSON objects as input and return the sum of their "price" fields. jq can accept text input as well, but by default, jq reads a stream of JSON entities (including numbers and other literals) from stdin. White- space is only needed to separate entities such as 1 and 2, and true and false. One or more files may be specified, in which case jq will read input from those instead. The options are described in the INVOKING JQ section; they mostly con- cern input and output formatting. The filter is written in the jq lan- guage and specifies how to transform the input file or document.