9 ms·
Jsonpipe is excellent for this. It makes json greppable by putting every piece if data on a new line with its key. $ echo '{"a": 1, "b": 2}' | jsonpipe /
by mhansen 15y ago
Jsonpipe is excellent for this. It makes json greppable by putting every piece if data on a new line with its key.
$ echo '{"a": 1, "b": 2}' | jsonpipe
/ {}
/a 1
/b 2
$ echo '["foo", "bar", "baz"]' | jsonpipe
/ []
/0 "foo"
/1 "bar"
/2 "baz"
https://github.com/dvxhouse/jsonpipe https://github.com/dvxhouse/jsonpipe
- a3_nm 15y agoA similar tool: http://kmkeen.com/jshon/ http://kmkeen.com/jshon/