The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

jcut - filters fields in JSON output

VERSION

version 0.01

SYNOPSIS

  jcut --field "field1 field2 field3 ..." [--complement] [/path/to/file1 /path/to/file2 ...]

DESCRIPTION

Outputs JSON objects with only the selected fields from JSON-formatted line input from supplied file path(s) or standard input if not provided.

OPTIONS

--fields | -f

Selects one or more fields to be included in the reformatted JSON output line. Multiple fields are separated with a space.

--complement | -c

Inverts the meaning of --fields, including all object keys except for those specified by --fields.

AUTHOR

Jeff Ober <sysread@fastmail.fm>

COPYRIGHT AND LICENSE

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.