From: Robert Sedlacek Date: Tue, 9 Dec 2014 22:52:49 +0000 (+0100) Subject: switch from JSON to JSON::MaybeXS X-Git-Tag: v0.000002~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e371d925c811551436db37c9f968d686673cc0f8;p=scpubgit%2FJSON-Diffable.git switch from JSON to JSON::MaybeXS --- diff --git a/Makefile.PL b/Makefile.PL index 3a4b73f..0451c5d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,7 @@ my %build_requires = ( my %requires = ( 'strictures' => 1, - 'JSON' => 0, + 'JSON::MaybeXS' => 0, ); # have to do this since old EUMM dev releases miss the eval $VERSION line diff --git a/lib/JSON/Diffable.pm b/lib/JSON/Diffable.pm index d0c837c..14e531d 100644 --- a/lib/JSON/Diffable.pm +++ b/lib/JSON/Diffable.pm @@ -4,14 +4,14 @@ use strictures 1; package JSON::Diffable; -use JSON (); +use JSON::MaybeXS (); use Exporter 'import'; 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 );