0.12
[gitmo/MooseX-Storage.git] / lib / MooseX / Storage / Format / JSON.pm
index 27dfa48..edde12a 100644 (file)
@@ -15,14 +15,12 @@ requires 'unpack';
 
 sub thaw {
     my ( $class, $json, @args ) = @_;
-    local $JSON::UnMapping = 1;
     utf8::encode($json) if utf8::is_utf8($json);
     $class->unpack( JSON::Any->jsonToObj($json), @args );
 }
 
 sub freeze {
     my ( $self, @args ) = @_;
-    local $JSON::UnMapping = 1;
     my $json = JSON::Any->objToJson( $self->pack(@args) );
     utf8::decode($json) if !utf8::is_utf8($json) and utf8::valid($json); # if it's valid utf8 mark it as such
     return $json;
@@ -36,7 +34,7 @@ __END__
 
 =head1 NAME
 
-MooseX::Storage::Format::JSON
+MooseX::Storage::Format::JSON - A JSON serialization role
 
 =head1 SYNOPSIS
 
@@ -97,7 +95,7 @@ Yuval Kogman E<lt>yuval.kogman@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2007 by Infinity Interactive, Inc.
+Copyright 2007-2008 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>