jq is a command-line program for querying and manipulating JSON objects. Technically speaking, it’s not a Node.js thing, but it’s so useful for working with JSON (and JSON is so prevalent in Node.js development) that it’s absolutely worth knowing. You’ll be a better developer knowing how to use jq to explore and manipulate your JSON data.
You can find instructions for downloading and installing jq on the jq website, or use the package manager of your choice. Once you have it installed, you should be able to see the version number on the command line if you run it with the -V option.
|||$ jq -V|
The examples in this book assume you’re using version 1.5.x.
jq reads JSON from standard input and operates ...