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

Jq does support slurp mode so you should be able to do this using that... granted I've never attempted this and the syntax is very different.

--- edit ---

I used the wrong term, the correct term is streaming mode.



It does work, but it is a huge headache to use, in part because the documentation around it is nowhere near enough to understand how to use it.

If I used it regularly I'd probably develop a feel for it and be much faster - it is reasonable, just abnormal and extremely low level, and much harder to use with other jq stuff. But I almost always start looking for alternatives well before I reach that point.




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

Search: