JSON::Typist::DataPrinter - a helper for Data::Printer-ing JSON::Typist data
version 0.008
use JSON::Typist::DataPrinter qw( jdump ); my $data = get_typed_data_from_your_code(); say "I got data and here it is!"; say jdump($data); # ...and you get beautifully printed data
This library exists for one reason: to provide jdump. It might change at any time, but one thing is for sure: it takes an argument to dump and it returns a printable string describing it.
jdump
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
my $string = jdump($struct);
This uses Data::Printer to produce a pretty printing of the structure, color coding typed data and ensuring that it's presented clearly. The format may change over time, so don't rely on it! It's meant for humans, not computers, to read.
Ricardo Signes <cpan@semiotic.systems>
This software is copyright (c) 2016 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install JSON::Typist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::Typist
CPAN shell
perl -MCPAN -e shell install JSON::Typist
For more information on module installation, please visit the detailed CPAN module installation guide.