Revision history for MooseX-Storage
+0.27
+ * use of parameterized roles (first added in 0.22) now works in Deferred
+ Example: $object->freeze({ format => [ $role_name => \%args ] })
+
0.26
* Fix URI for repository in metadata.
* Fix infinite recursion when collapsing objects which overload stringify
# pack the class into a JSON string
$p->freeze({ format => 'JSON' }); # { "__CLASS__" : "Point", "x" : 10, "y" : 10 }
+ # pack the class into a JSON string using parameterized JSONpm role
+ $p->freeze({ format => [ JSONpm => { json_opts => { pretty => 1 } } ] });
+
# unpack the JSON string into a class
my $p2 = Point->thaw(
'{ "__CLASS__" : "Point", "x" : 10, "y" : 10 }',
=item I<JSON>
+=item I<JSONpm>
+
=item I<YAML>
=item I<Storable>