gojq vs jsonfmt.dev
gojq
github.comjsonfmt.dev
jsonfmt.devSide by side
| Figure | gojq | jsonfmt.dev |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | — |
| API | — | Yes |
| Self-hosted | Yes | — |
| Plans published | 1 | 3 |
| Spec score · JSON Tools | 8.5 (#5) | 7.9 (#13) |
| Support | The project directs users to report bugs through its GitHub Issues page. | The API pricing lists community support for anonymous access, email support for the free key tier, and priority support for Pro. |
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.
jsonfmt.dev
jsonfmt.dev is a web-based JSON formatter, beautifier and validator, with an HTTPS API for JSON processing. The formatter offers 2-space, 4-space or tab indentation, optional key sorting and depth control. It validates JSON against RFC 8259 and reports line and column errors. Other tools can repair common malformed JSON, compare two documents and convert formats including YAML, CSV, XML, TypeScript, SQL, GraphQL and Protobuf. The toolkit also includes a JWT decoder, JSON Schema validator, JSONPath evaluator and JSONL tools. The maker says the core browser tool handles JSON locally without sending its contents to the server, and continues to work offline after loading; it can also be installed as a Progressive Web App. API options include anonymous access limited to 10 requests per minute, a free API key tier with 100 requests per minute and 1,000 per month, and Pro API at $9, paid once for 1,000 requests per minute and 50,000 per month. Share links encode JSON in the URL fragment, and anyone with the link can access its contents.