4 ms·
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 l
by qhwudbebd 3y ago
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...
- qhwudbebd 3y agoAre 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?
- bandie91 3y agoxml2[1] turns xml into line-based output. and 2xml reverses. [1] https://github.com/clone/xml2 https://github.com/clone/xml2
- robertlagrant 3y agoJust looked up gron - thanks. This looks useful.