X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FJSON%2FDiffable.pm;h=14e531d77cdb118097026fea33d68345b880dd96;hb=e371d925c811551436db37c9f968d686673cc0f8;hp=4720f39acb017c43d3a7af679bf4c3bf5130239d;hpb=4e96a9e734a015ce8e914e9c706cc7be393f51a7;p=scpubgit%2FJSON-Diffable.git diff --git a/lib/JSON/Diffable.pm b/lib/JSON/Diffable.pm index 4720f39..14e531d 100644 --- a/lib/JSON/Diffable.pm +++ b/lib/JSON/Diffable.pm @@ -4,13 +4,14 @@ use strictures 1; package JSON::Diffable; -use JSON (); +use JSON::MaybeXS (); use Exporter 'import'; -our $VERSION = '0.000001'; +our $VERSION = '0.000001'; # 0.0.1 + $VERSION = eval $VERSION; -my $real = JSON->new->relaxed->allow_nonref->utf8; +my $real = JSON::MaybeXS->new->relaxed->allow_nonref->utf8; our @EXPORT_OK = qw( encode_json decode_json ); @@ -94,7 +95,7 @@ L function. my $json = encode_json($data); -Turns a Perl data structure into relaxed JSON. +Turns a Perl data structure into diffable JSON. =head2 decode_json @@ -102,4 +103,12 @@ Turns a Perl data structure into relaxed JSON. Turns relaxed JSON into a Perl data structure. +=head1 AUTHOR + + Robert Sedlacek + +=head1 SPONSORED + +The development of this module was sponsored by L. + =cut