Shell / Commands

jq

English

Overview

A command-line tool for formatting, extracting, and transforming JSON data.

Details

A tool for parsing, filtering, and formatting JSON data from the command line. Widely used for inspecting API responses and processing JSON within shell scripts. A dot-separated path like jq '.foo.bar' walks the JSON hierarchy to pull out a field, and its own query language also supports more complex work like filtering and mapping over arrays.

More Linux terms