Hacker GitHub

← All repos

tomnomnom/gron

View on GitHub ↗ ★ 14,536 Go

Make JSON greppable!

95 mentions on Hacker News by 82 people: 7 stories, 88 comments · first 2018-04-01 · latest 2026-10-27

Mentions per year 95 mentions · busiest year 2023 (18)
20082026
  1. …all you're doing is trying to grep some deeply nested field, it's way easier with gron, IMHO. [1] https://github.com/tomnomnom/gron
    comment by msluyter · 2022-04-26 · in Zq: An easier and faster alternative to jq
  2. …CSV, Excel, Parquet, and more - https://github.com/multiprocessio/dsq gron: Make JSON greppable - https://github.com/tomnomnom/gron jello: Filter JSON and JSON Lines data with Python syntax - https://github.com/kellyjonbrazil/jello jless:…
    comment by luckman212 · 2022-03-21 · in Ask HN: Local Tools for Viewing JSON
  3. Try https://github.com/tomnomnom/gron
  4. Another contender is gron which does the same. It's written in golang instead of rust. https://github.com/tomnomnom/gron <pre>$ cat test.json | gron</pre>
  5. gron [0] is another interesting JSON processor that follows UNIX philosophy: [0] https://github.com/tomnomnom/gron "Make JSON greppable!" "gron transforms JSON into discrete assignments to make it easier to grep for what you want and see…
  6. …goal is to promote exploration of a JSON file through common unix tools such as awk and grep. 1: https://github.com/tomnomnom/gron
  7. Thank you, sounds very useful for quick queries: https://github.com/TomNomNom/gron
  8. Don't forget Gron: https://github.com/tomnomnom/gron
    comment by ABraidotti · 2021-11-10 · in JSONiq: JSON Query Language
  9. …processing tools I find helpful in addition to JavaScript include Gron aka "grep for JavaScript" ( https://github.com/tomnomnom/gron ), jq for querying, json_pp for pretty-printing and `bat` for syntax highlighting.
    comment by markstos · 2021-11-09 · in JSONiq: JSON Query Language
  10. …json[0].commit.author.email = "mail@tomnomnom.com"; json[0].commit.author.name = "Tom Hudson"; https://github.com/tomnomnom/gron
    comment by dmos62 · 2021-09-07 · in Htmlq: like jq, but for html
  11. `jtbl` seems nice! I'd add: * https://github.com/tomnomnom/gron - make json greppable * https://sr.ht/~gpanders/ijq/ - interactive jq
    comment by asicsp · 2021-08-25 · in An Introduction to JQ
  12. You might prefer gron for this use case: https://github.com/tomnomnom/gron
    comment by seppel · 2021-08-02 · in Extracting Objects Recursively with Jq
  13. …it took the combination of it and gron [1] to really transform my debugging and JSON workflows. 1: https://github.com/TomNomNom/gron
    comment by doytch · 2021-08-01 · in Extracting Objects Recursively with Jq
  14. …{ "date": "2016-07-02T10:51:21Z", "email": "mail@tomnomnom.com", "name": "Tom Hudson" } } } ] [1] https://github.com/tomnomnom/gron
  15. You're probably thinking of https://github.com/tomnomnom/gron .
  16. …for some edge cases. But for some quick exploratory analysis, it's a tool I like to have handy. [0] https://github.com/tomnomnom/gron/
    comment by michaelmior · 2021-03-25 · in SQLite is not a toy database
  17. …This output provides a lot of context for me to see and understand the differences. [1] gron https://github.com/tomnomnom/gron [2] delta https://github.com/dandavison/delta
  18. …that are pretty cumbersome in jq, such as finding a field deeply nested in an optional parent. [1] https://github.com/tomnomnom/gron
  19. The gron tool mentioned by the author is incredibly useful for grepping json. https://github.com/tomnomnom/gron
  20. …The patch was based on the most recent release, since master is currently not functional. 0: https://github.com/TomNomNom/gron 1: https://github.com/phiresky/ripgrep-all/pull/77
  21. Looks like someone has done so here: https://github.com/tomnomnom/gron/issues/77
    comment by mikepurvis · 2020-11-06 · in Gron – Make JSON Greppable
  22. ▲ 366
    Gron – Make JSON Greppable
    story by capableweb · 2020-11-06 · 91 comments
  23. This is called gron, I prefer it for reading JSON with a lot of nesting. https://github.com/tomnomnom/gron
  24. …json[0].commit.author.email = "mail@tomnomnom.com"; json[0].commit.author.name = "Tom Hudson"; [1] https://github.com/tomnomnom/gron
  25. https://github.com/tomnomnom/gron
    comment by fold_left · 2020-07-01 · in Mastering Jq: Part 1
  26. …JSON into single lines for use with grep, sed, etc and can recombine back into JSON as well. https://github.com/TomNomNom/gron
    comment by benjaminoakes · 2020-06-05 · in The Beauty of Unix Pipelines
  27. …data. jello looks pretty interesting too, but I'm not sure if I agree with python syntax. [0]: https://github.com/tomnomnom/gron
    comment by qqii · 2020-04-22 · in Nushell – A New Type of Shell
  28. Kudos for sharing "gron," I hadn't heard of that tool before and it looks quite useful: https://github.com/tomnomnom/gron
    comment by loeg · 2020-03-19 · in Illustrated Jq Tutorial
  29. I use gron to do this same thing: https://github.com/tomnomnom/gron Some options of gron I use often: --stream, which treats the input as "JSON lines" format --ungron, which converts from the flat format back to JSON
    comment by oftenwrong · 2020-03-19 · in Illustrated Jq Tutorial
  30. No need to panic! You can still pipe it to gron [0] and recover useable output. [0] https://github.com/TomNomNom/gron
    comment by enriquto · 2020-03-17 · in Curl will now output JSON
  31. …workflows like this, I've found it incredibly useful. https://news.ycombinator.com/item?id=16727665 https://github.com/tomnomnom/gron/
  32. …https://github.com/dflemstr/rq And for searching JSON: jq: https://stedolan.github.io/jq/ gron: https://github.com/tomnomnom/gron Or use in2csv from csvkit or rq to get the JSON over to CSV and go from there.
    comment by cosmie · 2019-09-21 · in Show HN: cq – Query CSVs using SQL
  33. Gron -- Make JSON Greppable https://github.com/TomNomNom/gron
  34. I recommend "gron" https://github.com/tomnomnom/gron > gron transforms JSON into discrete assignments to make it easier to grep for what you want and see the absolute 'path' to it. It eases the exploration of APIs that return large blobs…
  35. Use gron. See https://github.com/TomNomNom/gron
    comment by bradknowles · 2019-08-01 · in Learn a little jq, Awk and sed
  36. …the Bible first instead isn't the most helpful advice :) But I do appreciate you flagging it! [1] https://github.com/tomnomnom/gron --- P.S. For those who liked the writing style of this tutorial, you may enjoy these other ones on the IBM…
    comment by news_hacker · 2019-06-29 · in Awk by Example
  37. Looks a lot like ye olde gron: https://github.com/tomnomnom/gron Here's a Python implementation of gron https://github.com/venthur/python-gron
  38. …so you can pipe json to gron, grep -v to remove some data, then ungron to get it back to json. [0] https://github.com/tomnomnom/gron
  39. …need to deal with JSON in a script. It's a bit simpler than 'jq', both in usage and in capability. https://github.com/tomnomnom/gron
  40. …new language. With gron I can just wire it up to a bunch of standard line-based utilities. [1] https://github.com/tomnomnom/gron
  41. …= 2.88; json.root.right = []; json.root.right[0] = "a"; json.root.right[1] = "b"; [0] https://github.com/tomnomnom/gron
    comment by philsnow · 2018-12-19 · in Comma-Separated Tree
  42. …convert the JSON into a shell-friendly line-oriented format. This makes the rest straightforward. https://github.com/tomnomnom/gron
  43. gron, a simple tool to make JSON greppable: https://github.com/tomnomnom/gron
  44. …it's difficult to justify removing it - you never know whose workflow you might break[3]. [0] - https://github.com/tomnomnom/gron/blob/master/ADVANCED.mkd [1] - https://news.ycombinator.com/item?id=16733361 [2] -…
  45. ▲ 247
    Gron: A command line tool that makes JSON greppable
    story by oftenwrong · 2018-04-01 · 51 comments