jcut - filters fields in JSON output
version 0.01
jcut --field "field1 field2 field3 ..." [--complement] [/path/to/file1 /path/to/file2 ...]
Outputs JSON objects with only the selected fields from JSON-formatted line input from supplied file path(s) or standard input if not provided.
Selects one or more fields to be included in the reformatted JSON output line. Multiple fields are separated with a space.
Inverts the meaning of --fields, including all object keys except for those specified by --fields.
--fields
Jeff Ober <sysread@fastmail.fm>
This software is copyright (c) 2018 by Jeff Ober.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install jcut, copy and paste the appropriate command in to your terminal.
cpanm
cpanm jcut
CPAN shell
perl -MCPAN -e shell install jcut
For more information on module installation, please visit the detailed CPAN module installation guide.