A lightweight command-line JSON processor. Like sed for JSON data.
jq is a lightweight and flexible command-line JSON processor that serves as the JSON equivalent of classic Unix text processing tools like sed, awk, and grep. Written in portable C with zero runtime dependencies, jq allows developers and system administrators to easily slice, filter, map, and transform structured JSON data with a concise query language.
The tool excels at handling complex JSON manipulation tasks that would otherwise require writing custom scripts or using multiple tools. Whether you're extracting specific fields from API responses, restructuring data formats, or filtering large JSON datasets, jq provides an elegant and efficient solution. Its query syntax is designed to be both powerful for complex transformations and simple for basic operations.
jq is particularly valuable for developers working with APIs, DevOps engineers processing configuration files, data analysts working with JSON datasets, and anyone who regularly deals with JSON data in command-line workflows. The tool's portability and lack of dependencies make it an ideal choice for deployment in containers, CI/CD pipelines, and various system environments.
# via Prebuilt Binary
Download from https://github.com/jqlang/jq/releases
# via Docker
docker run --rm -i ghcr.io/jqlang/jq:latest