Data-Roundtrip
view release on metacpan or search on metacpan
script/json2json.pl view on Meta::CPAN
=head1 SYNOPSIS
json2json.pl -i "input.json" -o "output.json" --escape-unicode --pretty
json2json.pl -e < "input.json" > "output.json"
# press CTRL-D when done typing JSON to STDIN
# input must be less than 4K long!
json2json.pl
# Read input from clipboard or write output to clipboard
# Only in: Unix / Linux / OSX
# (must have already installed xclip or xsel or pbpaste (on OSX))
json2json.pl -e < $(xclip -o)
json2json.pl -e < $(pbaste)
# write the output to the clipboard for further pasting
json2json.pl -i input.json | xclip -i
# clicking mouse's middle-button will paste the result
=head1 USAGE
C<json2json.pl>
Options:
=over 4
script/json2perl.pl view on Meta::CPAN
=head1 SYNOPSIS
json2perl.pl -i "input.json" -o "output.pl" --no-escape-unicode --terse --no-indent
json2perl.pl -e < "input.json" > "output.pl"
# press CTRL-D when done typing JSON to STDIN
# input must be less than 4K long!
json2perl.pl
# Read input from clipboard or write output to clipboard
# Only in: Unix / Linux / OSX
# (must have already installed xclip or xsel or pbpaste (on OSX))
json2json.pl -e < $(xclip -o)
json2json.pl -e < $(pbaste)
# write the output to the clipboard for further pasting
json2json.pl -i input.json | xclip -i
# clicking mouse's middle-button will paste the result
=head1 USAGE
C<json2perl.pl>
Options:
=over 4
script/json2yaml.pl view on Meta::CPAN
=head1 SYNOPSIS
json2yaml.pl -i "input.json" -o "output.yaml" --(no-)escape-unicode
json2yaml.pl -e < "input.json" > "output.yaml"
# press CTRL-D when done typing JSON to STDIN
# input must be less than 4K long!
json2yaml.pl
# Read input from clipboard or write output to clipboard
# Only in: Unix / Linux / OSX
# (must have already installed xclip or xsel or pbpaste (on OSX))
json2json.pl -e < $(xclip -o)
json2json.pl -e < $(pbaste)
# write the output to the clipboard for further pasting
json2json.pl -i input.json | xclip -i
# clicking mouse's middle-button will paste the result
=head1 USAGE
C<json2yaml.pl>
Options:
=over 4
script/perl2json.pl view on Meta::CPAN
=head1 SYNOPSIS
perl2json.pl -i "perl-data-structure.pl" -o "output.json" --escape-unicode --pretty
perl2json.pl -e < "perl-data-structure.pl" > "output.json"
# press CTRL-D when done typing json to STDIN
# input must be less than 4K long!
perl2json.pl
# Read input from clipboard or write output to clipboard
# Only in: Unix / Linux / OSX
# (must have already installed xclip or xsel or pbpaste (on OSX))
json2json.pl -e < $(xclip -o)
json2json.pl -e < $(pbaste)
# write the output to the clipboard for further pasting
json2json.pl -i input.json | xclip -i
# clicking mouse's middle-button will paste the result
=head1 USAGE
C<perl2json.pl>
Options:
=over 4
script/yaml2json.pl view on Meta::CPAN
=head1 SYNOPSIS
yaml2json.pl -i "input.yaml" -o "output.json" --escape-unicode --pretty
yaml2json.pl -e < "input.yaml" > "output.json"
# press CTRL-D when done typing YAML to STDIN
# input must be less than 4K long!
yaml2json.pl
# Read input from clipboard or write output to clipboard
# Only in: Unix / Linux / OSX
# (must have already installed xclip or xsel or pbpaste (on OSX))
json2json.pl -e < $(xclip -o)
json2json.pl -e < $(pbaste)
# write the output to the clipboard for further pasting
json2json.pl -i input.json | xclip -i
# clicking mouse's middle-button will paste the result
=head1 USAGE
C<yaml2json.pl>
Options:
=over 4
script/yaml2perl.pl view on Meta::CPAN
=head1 SYNOPSIS
yaml2perl.pl -i "input.yaml" -o "output.perl" --no-escape-unicode --terse --no-indent
yaml2perl.pl -e < "input.yaml" > "output.pl"
# press CTRL-D when done typing YAML to STDIN
# input must be less than 4K long!
yaml2perl.pl
# Read input from clipboard or write output to clipboard
# Only in: Unix / Linux / OSX
# (must have already installed xclip or xsel or pbpaste (on OSX))
json2json.pl -e < $(xclip -o)
json2json.pl -e < $(pbaste)
# write the output to the clipboard for further pasting
json2json.pl -i input.json | xclip -i
# clicking mouse's middle-button will paste the result
=head1 USAGE
C<yaml2perl.pl>
Options:
=over 4
( run in 0.940 second using v1.01-cache-2.11-cpan-84e82930d8c )