Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting! I tend to use gron to bring JSON into (and out of) the line-based bailiwick of sed and awk where I'm most comfortable, rather than a custom query language like jq that I'd use much more rarely. But I guess that's at the opposite extreme of (in)efficiency than both this and the original jq.

There might be a nice 'edit just this path in-place in gron-style' recipe to be had out of jj/jq + gron together...



Are there any gron-like tools for xml? I'm aware it's a harder problem (and an increasingly rare problem) but perhaps someone has tackled it nonetheless?


xml2[1] turns xml into line-based output. and 2xml reverses.

[1] https://github.com/clone/xml2


Just looked up gron - thanks. This looks useful.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: