Re:Cicada – Unix shell written in Rust
by codesnik on Saturday July 01, 2017 @05:01AM
(#14676174)
jq is awesome. "json lines" data format (where each record is json without literal newlines, and newline separates records) nicely upgrades unix pipes to structured output, so you can mix old unix tools, like head, tail etc with jq.
maybe what's needed is some set of simple json wrappers around core utils to increase adoption.
[ Parent
| on HN ]
> "json lines" data format (where each record is json without literal newlines, and newline separates records)
Good point, but jq handles this already. If the payload is an array of object, simply `jq -c '.[]'` to get an object per line