Side by side
gojq vs jaq
Both stand on json tools. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan LinuxMacSelf-hosted+1
gojq brings jq-style querying to Go with CLI and library use, plus YAML support. Check its documented compatibility and execution limits when replacing jq or embedding it in an application.
Visit gojq Free plan Open source APILinuxMac+3
jaq brings jq-style filtering to multiple data formats and also offers a Rust library. Its lack of resource-use limits is worth considering when processing untrusted or costly workloads.
Visit jaqThe facts
| gojq | jaq | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Yes |
| Runs on | Linux, Mac, Self-hosted, Windows | API, Linux, Mac, Self-hosted, Web, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 2 |
| Maker | Not published | Not published |
| Website | github.com | github.com |
| On json tools | #3 of 29 | #1 of 29 |
gojq: what it does well
- Runs jq-style queries against JSON input.
- Supports YAML input and output.
- Offers arbitrary-precision integer calculations.
- Can be embedded as a Go library.
What to know first
- Does not preserve object key order.
- Does not parse jq's NaN or Infinity extensions.
- Some regular-expression syntax differs from jq.
- Library queries may run indefinitely or produce no output.
jaq: what it does well
- Free, open-source, and MIT-licensed.
- Supports seven data formats.
- Available as a CLI and Rust library.
- Handles arbitrary-byte strings and object keys.
- Offers binaries and an online playground.
What to know first
- Does not guard against resource exhaustion.
- File reads may occur before filter execution.