4 ms·
My most common jq usage is to copy and paste some json into quotes to make it easier to read. My second most common action is to chain curl and jq together. A r
by ashtonkem 6y ago
My most common jq usage is to copy and paste some json into quotes to make it easier to read. My second most common action is to chain curl and jq together. A replacement for jq that doesn’t use stdin is literally useless to me.
- yawaramin 6y agoI think at least two people in the thread pointed out that you can use /dev/stdin as a file.
- monadic2 6y agoIt's more than a little strange that isn't default behavior out of the box without specifying input. How do the authors think jq is used?
- ashtonkem 6y agoThat’s a cumbersome extra step for unclear benefit. Yes, q is supposedly faster than jq. But it is exceedingly rare for me to ever have any performance problems with jq, especially since it’s essentially a one off utility I use occasionally, not as part of the hot loop of any workflow where performance matters.
- yawaramin 6y agoIn that case I suppose you wouldn't use it.