Ajv vs gojq
Ajv
ajv.js.orggojq
github.comSide by side
| Figure | Ajv | gojq |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · JSON Tools | 8.0 (#10) | 8.5 (#5) |
| License | The project is distributed under the MIT License, which permits use, copying, modification, distribution, sublicensing, and sale subject to its terms. | The project is released under the MIT License. |
| Support | Ajv is included in a Tidelift subscription for centralized support in addition to support from maintainers. | The project directs users to report bugs through its GitHub Issues page. |
Plans
In their own words
gojq
gojq is a free, MIT-licensed Go implementation of the jq command, with a library for embedding queries in Go products. The command-line tool applies jq-style queries to JSON, including filtering, field selection, updates, and multiple input values. It reads YAML and can produce YAML output. Integer arithmetic uses arbitrary precision for addition, subtraction, multiplication, modulo, and divisible division. The project describes gojq as portable and supports Linux, macOS, Windows, and self-hosted use. Documented installation routes include Homebrew, mise, Zero Install, source builds, and Docker images. Go applications can parse and run queries, compile them for reuse, and configure custom functions and iterators. Environment-variable access and module loading are disabled by default for library queries and require configured loaders. gojq does not preserve object key order and lacks some jq extensions, flags, functions, and regular-expression behavior.