2 ms·
$ zsh_prompt> alias clijson="ruby -e 'require \"rubygems\";require \"json\"; require \"ap\"; j = JSON.parse(STDIN.gets); ap j'" command_that_emits_json | clijs
by ashayh 14y ago
$ zsh_prompt> alias clijson="ruby -e 'require \"rubygems\";require \"json\"; require \"ap\"; j = JSON.parse(STDIN.gets); ap j'"
command_that_emits_json | clijson