Install jq on MacOS (Mojave, Catalina, Big Sur etc) using brew (jq is a command line json processor)


Welcome to Appychip Youtube channel!

In this video, we will show you how to download and install ‘jq’ on MacOS using brew on Terminal for free.

This tutorial is also available as a blogpost on MacAppStore at

In this tutorial, you will learn howto use brew (aka Homebrew) to install ‘jq’ on Mac OS. Brew is an open source alternative to Apple App Store to install any MacOS program or application.

What is JQ?
jq is a lightweight and flexible command-line JSON processor that can be run as a command from bash Terminal.

jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep let you play with text.

jq syntax supports advanced features on JSON like while loop, filters, types and Values, builtin operators and functions, conditionals and comparisons, regular expressions (PCRE), math, I/O, streaming, assignment, modules and pretty prints JSON on Terminal or bash with syntax highlighting

How does ‘jq’ work?
A jq program is a “filter”: it takes an input, and produces an output. There are a lot of builtin filters for extracting a particular field of an object, or converting a number to a string, or various other standard tasks.

jq filters run on a stream of JSON data. The input to jq is parsed as a sequence of whitespace-separated JSON values which are passed through the provided filter one at a time. The output(s) of the filter are written to standard out, again as a sequence of whitespace-separated JSON data.

You can also combine Filters in various ways. For e.g. you can pipe the output of one filter into another filter, or collect the output of a filter into an array. You can also use jq with other tools (such as curl) or convert JSON to other formats such as CSV.

Is brew/Homebrew safe?
Brew is a open source package manager (that runs as a command from Terminal.app and uses your Mac’s wifi / internet to download and install supported programs). Using Homebrew, anyone can install thousands of softwares and apps on Macbook Pro, Macbook Air, Mac Mini, iMac, Mac Pro or any PC running MacOS etc. Key alternatives to application installers on Mac OS X include AppStore, Macports, PKG file or DMG files, Nix, Mac Ports to name a few.

Supported versions:
These installation instructions will work on all latest / core versions of MacOS (including Snow Leopard, Mountain Lion, Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojave, Catalina, Big Sur, plus MacOS Server)

If you face any errors (for example “ command not found ” or data related issues) while following tips for beginners on Appychip web/channel, please reach on our official website / blog at . Our editor will get back to you within 36 hours with a solution to your problem.

If this video helped you out, don’t forget to like this video and leave your review in comment.

Click here to subscribe to Appychip channel on Youtube:

Follow us:

Copyright © 2019, 2020, 2021 Appychip (All rights reserved)

Nguồn: https://ninhbinhtrekkingtours.com/

Xem thêm: https://ninhbinhtrekkingtours.com/category/cong-nghe

About admin

Check Also

How to dual boot macOS and Windows 11 | High Sierra

How to install macOS High Sierra and Windows 11 on same computer. macOS High Sierra …

3 comments

  1. Hi,I have brew on my mac.But when I enter"brew install jq", the error is:fatal: not in a git directory

  2. Hi, when I install jq on Mojave, I get the following error. Do you have any suggestion?

    Error: You are using macOS 10.14.
    We do not provide support for this pre-release version.
    You may encounter build failures or other breakages.

  3. Need more people so spread this video more