Convert JSON to YAML to JSON to...
$ cat file.json | jyj # YAML $ cat file.json | jyj | jyj # JSON $ cat file.json | jyj | jyj |jyj # YAML
This module installs a command-line tool called jyj.
jyj
It reads stdin.
If it looks like JSON, it prints the YAML dump of the JSON decoding.
If it looks like YAML, it prints the JSON encoding of the YAML load.
That's it.
Ingy döt Net ingy@cpan.org
Copyright 2022. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it underthe same terms as Perl itself.
To install App::JYJ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::JYJ
CPAN shell
perl -MCPAN -e shell install App::JYJ
For more information on module installation, please visit the detailed CPAN module installation guide.