Rework ::XS serializer and deserializer classes
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Deserialize / JSON.pm
index fd55228..46fdf08 100644 (file)
@@ -3,11 +3,14 @@ package Catalyst::Action::Deserialize::JSON;
 use Moose;
 use namespace::autoclean;
 use Scalar::Util qw(openhandle);
+BEGIN {
+    $ENV{'PERL_JSON_BACKEND'} = 2; # Always use compiled JSON::XS
+}
 
 extends 'Catalyst::Action';
 use JSON;
 
-our $VERSION = '0.94';
+our $VERSION = '1.00';
 $VERSION = eval $VERSION;
 
 sub execute {