Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / JSON.pm
index b48a213..127014e 100644 (file)
@@ -4,10 +4,9 @@ use Moose;
 use namespace::autoclean;
 
 extends 'Catalyst::Action';
-use JSON ();
+use JSON::MaybeXS qw(JSON);
 
-our $VERSION = '0.84';
-$VERSION = eval $VERSION;
+# VERSION
 
 has encoder => (
    is => 'ro',
@@ -39,4 +38,6 @@ sub serialize {
     $self->encoder->encode( $data );
 }
 
+__PACKAGE__->meta->make_immutable;
+
 1;