3 ms·
Also see App::PipeFilter - https://metacpan.org/module/App::PipeFilter https://metacpan.org/module/App::PipeFilter The module is a framework/collection of shel
by draegtun 14y ago
Also see App::PipeFilter - https://metacpan.org/module/App::PipeFilter https://metacpan.org/module/App::PipeFilter
The module is a framework/collection of shell pipelines which include JSON processing:
curl -s 'http://api.duckduckgo.com/?q=poe&o=json' |
jsonpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
grep -i perl |
jmap -i col0 -o url -i col1 -o title |
json2yaml
Output:
title: Perl Object Environment, a library for event driven multitasking for the Perl programming language
url: http://duckduckgo.com/Perl_Object_Environment
Other structured data can be added to this module (Looks like Ingy maybe adding YAML - https://github.com/ingydotnet/app-pipefilter https://github.com/ingydotnet/app-pipefilter)