updated changes;
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / JSON.pm
index b48a213..9d5f304 100644 (file)
@@ -4,10 +4,7 @@ use Moose;
 use namespace::autoclean;
 
 extends 'Catalyst::Action';
-use JSON ();
-
-our $VERSION = '0.84';
-$VERSION = eval $VERSION;
+use JSON::MaybeXS qw(JSON);
 
 has encoder => (
    is => 'ro',
@@ -39,4 +36,6 @@ sub serialize {
     $self->encoder->encode( $data );
 }
 
+__PACKAGE__->meta->make_immutable;
+
 1;