jmap - map input JSON fields to output JSON fields by renaming them
version 0.005
jmap -i original_name -o new_name [-i orig -o new ...] [file ...]
jmap(1) behaves like jcat(1) but renames fields in the process of concatenating input files. jmap(1) reads files sequentially, altering some or all of their field names before writing them to standard output. jmap(1) can rename multiple fields by repeating its -i and -o flags.
The -i and -o flags' unique behavior is implemented in App::PipeFilter::JsonMap. See that module for more detailed documentation.
You may read this utility's implementation in its entirety at
perldoc -m jmap
App::PipeFilter has top-level documentation including a table of contents for all the libraries and utilities included in the project.
https://rt.cpan.org/Public/Dist/Display.html?Name=App-PipeFilter
https://github.com/rcaputo/app-pipefilter
jmap is Copyright 2011 by Rocco Caputo. All rights are reserved. jmap is released under the same terms as Perl itself.
To install App::PipeFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PipeFilter
CPAN shell
perl -MCPAN -e shell install App::PipeFilter
For more information on module installation, please visit the detailed CPAN module installation guide.