App::pq - Like jq and gq, but with Perl
cpanm App::pq
With no arguments, dump the JSON data structure from STDIN as a Perl data structure.
$ echo '{"foo":[1,2,3],"bar":"blee"}' | pq
$VAR1 = {
'bar' => 'blee',
'foo' => [
1,
2,
3
]
};
With an argument, process the argument as code with $j as the perl data structure.
$ echo '{"foo":[1,2,3],"bar":"blee"}' | pq 'print join "\n", keys %$j'
foo
bar
Kaitlyn Parkhurst (SymKat) symkat@symkat.com ( Blog: http://symkat.com/ )
Copyright (c) 2022 the App::pq "AUTHOR", "CONTRIBUTORS", and "SPONSORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself.
The most current version of App::pq can be found at https://github.com/symkat/App-pq