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

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.


I think at least two people in the thread pointed out that you can use /dev/stdin as a file.


That’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.


In that case I suppose you wouldn't use it.


It'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?


I trend to use jq with a file all the time, I prefer to curl first and later operate on top. /slug


I'm pretty sure the author has also replied elsewhere saying he will add it since it was brought up as a concern.




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

Search: