NAME

Tie::Hash::SerializedString - tied interface for Scalar::Accessors::LikeHash

SYNOPSIS

my $string = '{}';
tie my %hash, "Tie::Hash::SerializedString", \$string;

$hash{foo} = "bar";

print $string;   # prints '{"foo":"bar"}'

DESCRIPTION

This provides a tied hash wrapper around Scalar::Accessors::LikeHash implementations.

Usage: tie %hash, "Tie::Hash::SerializedString", \$scalar, $impl

... where $impl is the class name of a concrete implementation of the Scalar::Accessors::LikeHash role. If the implementation is omitted, then defaults to Scalar::Accessors::LikeHash::JSON.

BUGS

Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Scalar-Accessors-LikeHash.

SEE ALSO

Scalar::Accessors::LikeHash.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2013 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.