3 ms·
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 u
by cpuguy83 4y ago
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.
- Groxx 4y agoIt 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.