Bump versions for release
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / JSON / XS.pm
index a69b32e..79a8844 100644 (file)
@@ -4,11 +4,14 @@ use Moose;
 use namespace::autoclean;
 
 extends 'Catalyst::Action::Serialize::JSON';
-use JSON::XS qw(encode_json);
+use JSON::XS ();
 
-sub serialize {
-    my $self = shift;
-    encode_json( shift );
+our $VERSION = '0.82';
+$VERSION = eval $VERSION;
+
+sub _build_encoder {
+   my $self = shift;
+   return JSON::XS->new->convert_blessed;
 }
 
 1;