3 ms·
In actuality most CLI output is quite small and can easily be represented as a single JSON document. There are a few commands that can produce huge amounts of o
by kbrazil 5y ago
In actuality most CLI output is quite small and can easily be represented as a single JSON document. There are a few commands that can produce huge amounts of output and those are good candidates for using JSON Lines as noted in the article.
JC has streaming parsers that lazily output JSON lines for these types of commands. (ls, ping, vmstat, iostat, etc.)