itchyny/gojq
View on GitHub ↗ ★ 3,817 Go
Pure Go implementation of jq
26 mentions on Hacker News by 19 people: 2 stories, 24 comments · first 2020-03-19 · latest 2025-06-15
20082026
-
…- gojq which has just vastly superior error messages and yaml input https://github.com/itchyny/gojq - org-mode, worth it even if you're not already in Emacs https://org-mode.org - the 1Password cli's $(op inject) option for pu
comment by mdaniel · 2025-06-15 · in What Are the Most Underrated Tools You Use Every Day? -
There's https://github.com/itchyny/gojq which is pretty popular, even GitHub CLI embeds it for their --jq filter.
comment by crabique · 2025-03-29 · in Xee: A Modern XPath and XSLT Engine in Rust -
A reimplementation of jq in golang supports reading yaml and, of course, emits json: https://github.com/itchyny/gojq#:~:text=supports%20reading%2... That one is likely more relevant than yq since folks in the json ecosystem are far more…
comment by mdaniel · 2024-12-08 · in JSON5 – JSON for Humans -
…arise from gojq ignoring object key sort order (which you shouldn't really rely on anyway). [1] https://github.com/itchyny/gojq#difference-to-jq
comment by kitd · 2024-06-25 · in Show HN: Qq: like jq, but can transcode between many formats -
▲ 1
Gojq: Pure Go Implementation of Jqstory by SomaticPirate · 2024-03-28 · 0 comments
-
Yeap i've talked to itchyny quite a lot about various changes https://github.com/itchyny/gojq/issues/153 and also upstreamed quite a lot https://github.com/itchyny/gojq/issues?q=author%3Awader like custom iterators (to allow eval, own…
comment by wwader · 2023-12-12 · in To a Man with `Jq`, Everything Looks Like JSON -
…know that; how cool! Have you asked itchyny about their interest in upstreaming the changes < https://github.com/itchyny/gojq/compare/main...wader:gojq:fq >? they don't look completely out of alignment with gojq and it would make reasoning…
comment by mdaniel · 2023-12-12 · in To a Man with `Jq`, Everything Looks Like JSON -
heh, wait until one discovers that gojq < https://github.com/itchyny/gojq#difference-to-jq > accepts yaml input; so, if you happen to have a bunch of _almost_ structured data then some light sprinkling can turn it into yaml and then you're…
comment by mdaniel · 2023-12-09 · in To a Man with `Jq`, Everything Looks Like JSON -
…https://pkg.go.dev/encoding/json#Decoder do support steaming at least. Here is gojq's stream mode https://github.com/itchyny/gojq/blob/main/cli/stream.go
comment by wwader · 2023-12-04 · in Gron: Make JSON greppable -
Yes it is, compared to gojq https://github.com/itchyny/gojq/blob/main/go.mod
comment by mozey · 2023-11-30 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
…so it's not apples-to-apples, but I'll also draw ones attention to gojq's --yaml-input flag < https://github.com/itchyny/gojq/blob/v0.12.13/README.md?plai... > (they have yaml out, also, but I use that a lot less often) allowing leveraging…
comment by mdaniel · 2023-11-08 · in Interactive examples for learning jq -
Some competition for https://github.com/itchyny/gojq . I had read somewhere that it was faster than jq - no idea if that's still the case.
comment by jpeeler · 2023-08-01 · in First release of jq in 5 years -
I've been getting a lot of mileage out of https://github.com/itchyny/gojq#readme recently due to two things: its vastly superior error messages and the (regrettably verbose) `--yaml-input` option I also have…
comment by mdaniel · 2023-03-16 · in Miller: Like Awk, sed, cut, join, and sort for CSV, TSV, and tabular JSON -
…and JSON so you can just do exactly the same things with either one (with some minor exceptions.) https://github.com/itchyny/gojq
comment by theonemind · 2023-02-04 · in yq: command-line YAML, JSON, XML, CSV and properties processor -
gojq ( https://github.com/itchyny/gojq ) and fq ( https://github.com/wader/fq ) can read YAML and output JSON. But that won't nescessarily help, because other parsers can intepreret that YAML differently.
comment by jwilk · 2023-01-13 · in The Yaml document from hell -
…of which is jmespath rather than the jq query language) [1]: https://github.com/01mf02/jaq [2]: https://github.com/itchyny/gojq [3]: https://github.com/jmespath/jp
comment by llimllib · 2022-10-06 · in Jq Internals: Backtracking (2017) -
…the point. The author makes it clear that this limitation is the cause for Gojq's behaviour. [0] https://github.com/itchyny/gojq/issues/50
comment by rfiat · 2022-08-22 · in Gojq: Pure Go Implementation of Jq -
…regressions, since it uses math/big, instead of GMP. [0]: https://github.com/andrewarchi/wsjq [1]: https://github.com/itchyny/gojq/issues/186
comment by aarchi · 2022-08-22 · in Gojq: Pure Go Implementation of Jq -
▲ 153
Gojq: Pure Go Implementation of Jqstory by laqq3 · 2022-08-21 · 74 comments
-
I use https://github.com/itchyny/gojq . I like `jq`'s functional style, but I don't like the way it breaks number precision (or used to). However, for deep `jq` selects I use `<file.json | gron | grep key -C n | norg` where `norg` is `gron…
comment by renewiltord · 2022-04-27 · in Show HN: gq – like jq or zq, but you use Go -
…also learned about gojq [0] yesterday too. A Go clone of jq that you can also embed in Go code. [0] https://github.com/itchyny/gojq Edit: oh unlike jq/gojq your tool doesn't implement the jq language it allows you to script in Go. Cool!…
comment by eatonphil · 2022-04-27 · in Show HN: gq – like jq or zq, but you use Go -
jq is awesome, last time I used it is... today :) Or rather the pure Go rewrite https://github.com/itchyny/gojq which is a better faster implementation, with bugs fixed
comment by hbbio · 2022-04-26 · in Zq: An easier and faster alternative to jq -
…tps://github.com/hoshsadiq/dot_files/blob/master/zshrc.d/m... [1] https://github.com/junegunn/fzf [2] https://github.com/itchyny/gojq/
comment by hoshsadiq · 2021-08-01 · in Extracting Objects Recursively with Jq -
This uses https://github.com/itchyny/gojq which is a pure Go re-implementation of jq. Can be used as a cli tool or as a library. Didn't know about this, very cool that it exists!
comment by donio · 2020-06-06 · in Show HN: Jqview, a simple native GUI for inspecting JSON with jq -
If you'd like to avoid cgo, you can use a pure go implementation of jq called gojq: https://github.com/itchyny/gojq
comment by dastx · 2020-03-19 · in Illustrated Jq Tutorial