X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FJSON%2FMaybeXS.pm;h=a101a36e03f5d194806aa3c9b666e64f07161cef;hb=48d383c7c124117ea159a61b62e7ce7dd10ab163;hp=46b15a94efdb953b67caa324b41654e39ad7bd9a;hpb=b2c4c35319f3b62dc64186c1ffb641cc0d5b01cb;p=p5sagit%2FJSON-MaybeXS.git diff --git a/lib/JSON/MaybeXS.pm b/lib/JSON/MaybeXS.pm index 46b15a9..a101a36 100644 --- a/lib/JSON/MaybeXS.pm +++ b/lib/JSON/MaybeXS.pm @@ -16,7 +16,7 @@ sub _choose_json_module { return 'Cpanel::JSON::XS' if eval { require Cpanel::JSON::XS; 1; }; push @err, "Error loading Cpanel::JSON::XS: $@"; - return 'JSON::XS' if eval { require JSON::XS; 1; }; + return 'JSON::XS' if eval { require JSON::XS; JSON::XS->VERSION(3.0); 1; }; push @err, "Error loading JSON::XS: $@"; return 'JSON::PP' if eval { require JSON::PP; 1 };