Hacker GitHub

← All repos

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

Mentions per year 26 mentions · busiest year 2023 (11)
20082026
  1. …- 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
  2. There's https://github.com/itchyny/gojq which is pretty popular, even GitHub CLI embeds it for their --jq filter.
  3. 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
  4. …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
  5. ▲ 1
    Gojq: Pure Go Implementation of Jq
    story by SomaticPirate · 2024-03-28 · 0 comments
  6. 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…
  7. …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…
  8. 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…
  9. …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
  10. Yes it is, compared to gojq https://github.com/itchyny/gojq/blob/main/go.mod
  11. …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
  12. …a very annoying argument name) and also has the golang property of "curl binary; chmod; profit": https://github.com/itchyny/gojq#difference-to-jq Its error reporting is also clang-vs-gcc level wizardry, and I often use it to get a helpful…
    comment by mdaniel · 2023-09-07 · in jq 1.7
  13. 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
  14. 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…
  15. …and JSON so you can just do exactly the same things with either one (with some minor exceptions.) https://github.com/itchyny/gojq
  16. 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
  17. …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)
  18. …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
  19. …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
  20. ▲ 153
    Gojq: Pure Go Implementation of Jq
    story by laqq3 · 2022-08-21 · 74 comments
  21. 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
  22. …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!…
  23. 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
  24. …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
  25. 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!
  26. 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