ozbillwang / jq-cookbook

How to use jq, the command-line JSON parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

   _             _____            _    _                 _
  (_)           / ____|          | |  | |               | |
   _  __ _     | |     ___   ___ | | _| |__   ___   ___ | | __
  | |/ _` |    | |    / _ \ / _ \| |/ / '_ \ / _ \ / _ \| |/ /
  | | (_| |    | |___| (_) | (_) |   <| |_) | (_) | (_) |   <
  | |\__, |     \_____\___/ \___/|_|\_\_.__/ \___/ \___/|_|\_\
 _/ |   | |
|__/    |_|

Noah Sussman's jq Cookbook

How to use jq, the command-line JSON processor.

I provide some snippets of Client-Side JavaScript code to facilitate loading JSON documents into the browser. These snippets require jQuery in order to run.

Optional prerequisites

I use uglifyjs to format JavaScript. This is optional, you don't need uglifys in order to use the jq recipes.

I refer to the Jenkins CI server throughout, but you can mentally substitute the name of your own CI server and everything will work just the same. All the code here is entirely platform-independent.

If you have not used jq before

If you have not used jq before then this tutorial will annoy you.

Please refer first to the examples and documentation found in the very fine manual.

Or just type man jq at the prompt --- everything you need is documented in the manpage for jq!

jq is a DSL (domain-specific language) so expect to take a day or two (at least) to read through the manual and fully understand jq's capabilities.

About

How to use jq, the command-line JSON parser.

License:Apache License 2.0


Languages

Language:Shell 100.0%