The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

App::JYJ

Convert JSON to YAML to JSON to...

Synopsis

    $ cat file.json | jyj             # YAML
    $ cat file.json | jyj | jyj       # JSON
    $ cat file.json | jyj | jyj |jyj  # YAML

Description

This module installs a command-line tool called 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.

Author

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.