Version 1.02
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / JSON / XS.pm
index 283f777..bf415a6 100644 (file)
@@ -2,18 +2,16 @@ package Catalyst::Action::Serialize::JSON::XS;
 
 use Moose;
 use namespace::autoclean;
+BEGIN {
+    $ENV{'PERL_JSON_BACKEND'} = 2; # Always use compiled JSON::XS
+}
 
 extends 'Catalyst::Action::Serialize::JSON';
 use JSON::XS ();
 
-our $VERSION = '0.98';
+our $VERSION = '1.02';
 $VERSION = eval $VERSION;
 
-sub _build_encoder {
-   my $self = shift;
-   return JSON::XS->new->convert_blessed;
-}
-
 __PACKAGE__->meta->make_immutable;
 
 1;