A fast JSON processor that reads data from files or stdin and supports dot-notation queries for extracting nested values. Pretty-prints by default with a --minify option for compact output. Uses serde_json under the hood for reliable parsing. Handles large JSON documents and arrays of objects.
JSONUtilityDataCLI
Features
- Dot-notation query syntax: .key.subkey, .array[0].field
- Pretty-printed output by default with --minify flag
- Reads from files or stdin for pipeline usage
- Handles nested objects, arrays, and mixed structures
- Single static binary, no runtime dependencies
Flags
| Long | Short | Description |
|---|---|---|
| --version | -V | Show version and license |
| --file | -f | Input JSON file path |
| --query | -q | JSON query (e.g., .key.sub, .[0]) |
| --minify | -m | Minify output instead of pretty-print |
Usage
terminal
$ jfq .name data.json
$
$ jfq .users[0].email < data.json
$
$ jfq --file data.json --query .items --minify
Dependencies
serde_json for JSON parsing — single Rust binary, no runtime needed
Install
$ curl -LO https://labs.stech-sol.com/downloads/jfq/0.1.0/jfq_linux_amd64
$ chmod +x jfq_linux_amd64
$ sudo mv jfq_linux_amd64 /usr/local/bin/jfq
About
Downloads
Verify integrity
SHA256 checksums