Skip to content

jq

Category: Files and apps

Homepage: https://jqlang.org

Vendor: jqlang

License: See repository

Source: GitHub Release

Profiles: Full, Basic

File Extensions: .json, .ndjson, .jsonl

Tags: json, data-processing, cli

jq is a powerful command-line JSON processor that allows you to parse, filter, and manipulate JSON data with ease. It supports a wide range of operations, including selecting specific fields, transforming data, and performing complex queries. With its simple syntax and extensive functionality, jq is an essential tool for anyone working with JSON data in the command line.

Tips

Filter and reshape JSON on the command line. Use -r for raw strings, -c for compact output and 'jq keys' to explore; gron is handy when you do not know the structure.

Usage

jq '.field' file.json