Enable UTF-8 for JSON::XS serializer
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / JSON / XS.pm
index f12de47..26cb71a 100644 (file)
@@ -9,10 +9,7 @@ use JSON::XS ();
 our $VERSION = '1.00';
 $VERSION = eval $VERSION;
 
-sub _build_encoder {
-   my $self = shift;
-   return JSON::XS->new->convert_blessed;
-}
+sub _build_encoder { return JSON::XS->new->utf8->convert_blessed }
 
 __PACKAGE__->meta->make_immutable;