NAME
JSON::Typist::DataPrinter - a helper for Data::Printer-ing JSON::Typist data
VERSION
version 0.008
SYNOPSIS
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
OVERVIEW
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.
PERL VERSION
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.
FUNCTIONS
jdump
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.
AUTHOR
Ricardo Signes <cpan@semiotic.systems>
COPYRIGHT AND LICENSE
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.