Shaping JSON with jq
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,[56] 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â |
â | jq-1.5-1-a5b5cbe |
The examples in this book assume youâre using version 1.5.x.
jq reads ...
Get Node.js 8 the Right Way now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.