3 ms·
jq is awesome. "json lines" data format (where each record is json without literal newlines, and newline separates records) nicely upgrades unix pipes to struct
by codesnik 9y ago
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.
- subnixr 9y ago> "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